summaryrefslogtreecommitdiff
path: root/tests/lang/bug24436.phpt
blob: b0cfbe093120a4cd7a7ce7edb5566ae64fb59ed7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #24436 (isset() and empty() produce errors with non-existent variables in objects)
--FILE--
<?php
class test {
	function __construct() {
		if (empty($this->test[0][0])) { print "test1";}
		if (!isset($this->test[0][0])) { print "test2";}
	}
}

$test1 = new test();
?>
--EXPECT--
test1test2