xref: /PHP-5.3/Zend/tests/bug24436.phpt (revision 610c7fbe)
1--TEST--
2Bug #24436 (isset()/empty() produce errors with non-existent variables in classes)
3--SKIPIF--
4<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 is needed'); ?>
5--INI--
6error_reporting=2047
7--FILE--
8<?php
9class test {
10        function __construct() {
11                if (empty($this->test[0][0])) { print "test1\n";}
12                if (!isset($this->test[0][0])) { print "test2\n";}
13                if (empty($this->test)) { print "test1\n";}
14                if (!isset($this->test)) { print "test2\n";}
15        }
16}
17
18$test1 = new test();
19?>
20--EXPECT--
21test1
22test2
23test1
24test2
25