mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
16 lines
303 B
Plaintext
16 lines
303 B
Plaintext
|
--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
|