summaryrefslogtreecommitdiff
path: root/Zend/tests/isset_001.phpt
blob: 340b23701e2804e6fe14fc7375ae210709ecf756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--TEST--
Testing isset and unset with variable variables
--FILE--
<?php

print "- isset ---\n";

$var_name = 'unexisting';

if (isset($$var_name)) {
	print "error\n";
}

$test = 'var_name';

if (isset($$$test)) {
	print "error\n";
}

print "- unset ---\n";

unset($$var_name);

unset($$$test);

print "done\n";

?>
--EXPECT--
- isset ---
- unset ---
done