Return to import_request2.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / general_functions |
1.1 misho 1: --TEST-- 2: import_request_variables() test (numeric keys) 1.1.1.2 ! misho 3: --SKIPIF-- ! 4: <?php if(PHP_VERSION_ID >= 50399){ die('skip not needed anymore without register_globals'); } ?> 1.1 misho 5: --GET-- 6: 1=0&2=1&3=2&4=3&5=4 7: --POST-- 8: 1=5&2=6&3=7&4=8&5=9 9: --COOKIE-- 10: 1=10;2=11;3=12;4=13;5=14 11: --INI-- 12: variables_order=CGP 13: --FILE-- 14: <?php 15: 16: import_request_variables("gpc", "_"); 17: var_dump($_1, $_2, $_3, $_4, $_5); 18: 19: echo "Done\n"; 20: ?> 21: --EXPECTF-- 22: string(2) "10" 23: string(2) "11" 24: string(2) "12" 25: string(2) "13" 26: string(2) "14" 27: Done