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