Annotation of embedaddon/php/Zend/tests/bug24436.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #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--
6: error_reporting=2047
7: --FILE--
8: <?php
9: class 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--
21: test1
22: test2
23: test1
24: test2
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>