php-src/Zend/tests/bug24436.phpt

23 lines
508 B
Plaintext
Raw Normal View History

2003-07-01 19:12:56 +00:00
--TEST--
2003-07-24 17:07:40 +00:00
Bug #24436 (isset()/empty() produce errors with non-existent variables in classes)
2003-07-01 19:12:56 +00:00
--INI--
error_reporting=2047
--FILE--
<?php
class test {
function __construct() {
if (empty($this->test[0][0])) { print "test1\n";}
if (!isset($this->test[0][0])) { print "test2\n";}
if (empty($this->test)) { print "test1\n";}
if (!isset($this->test)) { print "test2\n";}
}
}
$test1 = new test();
?>
--EXPECT--
2003-07-24 17:00:17 +00:00
test1
test2
2003-07-01 19:12:56 +00:00
test1
test2