cvs: php-src /tests/lang bug24436.phpt
| From: | Zeev Suraski | Date: | Tue, 22 Jul 2003 13:54:46 +0000 |
| Subject: | cvs: php-src /tests/lang bug24436.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-22718@lists.php.net to get a copy of this message | ||
zeev Tue Jul 22 09:54:46 2003 EDT
Added files:
/php-src/tests/lang bug24436.phpt
Log:
Add test
Index: php-src/tests/lang/bug24436.phpt
+++ php-src/tests/lang/bug24436.phpt
--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