Annotation of embedaddon/php/Zend/tests/isset_001.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Testing isset and unset with variable variables
3: --FILE--
4: <?php
5:
6: print "- isset ---\n";
7:
8: $var_name = 'unexisting';
9:
10: if (isset($$var_name)) {
11: print "error\n";
12: }
13:
14: $test = 'var_name';
15:
16: if (isset($$$test)) {
17: print "error\n";
18: }
19:
20: print "- unset ---\n";
21:
22: unset($$var_name);
23:
24: unset($$$test);
25:
26: print "done\n";
27:
28: ?>
29: --EXPECT--
30: - isset ---
31: - unset ---
32: done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>