php-src/Zend/tests/unset_cv07.phpt

19 lines
330 B
Plaintext
Raw Normal View History

--TEST--
unset() CV 7 (indirect unset() of global variable in import_request_variables())
--SKIPIF--
2010-04-29 12:48:06 +00:00
<?php if(PHP_VERSION_ID >= 50399){ die('skip not needed anymore without register_globals'); } ?>
--GET--
x=2
--FILE--
<?php
2005-06-21 17:28:09 +00:00
$_x = "1\n";
echo $_x;
import_request_variables("g","_");
echo $_x;
2004-10-05 13:29:43 +00:00
echo "\nok\n";
?>
2005-05-03 14:05:52 +00:00
--EXPECTF--
1
2
ok