php-src/Zend/tests/isset_001.phpt

33 lines
361 B
Plaintext
Raw Normal View History

2008-05-09 22:11:51 +08:00
--TEST--
Testing isset and unset with variable variables
--FILE--
<?php
print "- isset ---\n";
$var_name = 'unexisting';
if (isset($$var_name)) {
2020-02-04 05:52:20 +08:00
print "error\n";
2008-05-09 22:11:51 +08:00
}
$test = 'var_name';
if (isset($$$test)) {
2020-02-04 05:52:20 +08:00
print "error\n";
2008-05-09 22:11:51 +08:00
}
print "- unset ---\n";
unset($$var_name);
unset($$$test);
print "done\n";
?>
--EXPECT--
- isset ---
- unset ---
done