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