summaryrefslogtreecommitdiff
path: root/src/tests/upload_validation_no_exec.phpt
blob: 90a58da543b9b69902ebeb3b28680012c7c141dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--TEST--
Upload a file, validation script not executable
--INI--
file_uploads=1
sp.configuration_file={PWD}/config/upload_validation_non_exec.ini
output_buffering=off
--POST_RAW--
Content-Type: multipart/form-data; boundary=blabla
--blabla
Content-Disposition: form-data; name="test"; filename="test.php"
--blabla--
--FILE--
<?php
var_dump($_FILES);
echo "\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
?>
--EXPECTF--
array(1) {
  ["test"]=>
  array(5) {
    ["name"]=>
    string(8) "test.php"
    ["type"]=>
    string(0) ""
    ["tmp_name"]=>
    string(0) ""
    ["error"]=>
    int(3)
    ["size"]=>
    int(0)
  }
}