]> granicus.if.org Git - php/commitdiff
Add test
authorZeev Suraski <zeev@php.net>
Tue, 22 Jul 2003 13:54:45 +0000 (13:54 +0000)
committerZeev Suraski <zeev@php.net>
Tue, 22 Jul 2003 13:54:45 +0000 (13:54 +0000)
tests/lang/bug24436.phpt [new file with mode: 0644]

diff --git a/tests/lang/bug24436.phpt b/tests/lang/bug24436.phpt
new file mode 100644 (file)
index 0000000..b0cfbe0
--- /dev/null
@@ -0,0 +1,15 @@
+--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