]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Tue, 25 Nov 2003 09:20:57 +0000 (09:20 +0000)
committerSVN Migration <svn@php.net>
Tue, 25 Nov 2003 09:20:57 +0000 (09:20 +0000)
tests/lang/bug26182.phpt [new file with mode: 0644]

diff --git a/tests/lang/bug26182.phpt b/tests/lang/bug26182.phpt
new file mode 100644 (file)
index 0000000..acd65c0
--- /dev/null
@@ -0,0 +1,25 @@
+--TEST--
+Bug #26182 (Object properties created redundantly)
+--INI--
+error_reporting=2039
+--FILE--
+<?php
+
+class A {
+    function NotAConstructor ()
+    {
+        if (isset($this->x)) {
+            //just for demo
+        }
+    }
+}
+
+$t = new A ();
+
+print_r($t);
+
+?>
+--EXPECT--
+a Object
+(
+)