summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2003-07-22 13:54:45 +0000
committerZeev Suraski <zeev@php.net>2003-07-22 13:54:45 +0000
commit4ec05c508b3b3b8c6b336934f0b08c7d08d17085 (patch)
treeabc6c1e38cd5e3003801e19d727d21991665de9f
parent6c24e1577c41b4b31e9ff5946a4549ef0fe837c0 (diff)
downloadphp-git-4ec05c508b3b3b8c6b336934f0b08c7d08d17085.tar.gz
Add test
-rw-r--r--tests/lang/bug24436.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/lang/bug24436.phpt b/tests/lang/bug24436.phpt
new file mode 100644
index 0000000000..b0cfbe0931
--- /dev/null
+++ b/tests/lang/bug24436.phpt
@@ -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