diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/bug26182.phpt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/lang/bug26182.phpt b/tests/lang/bug26182.phpt new file mode 100644 index 0000000000..acd65c0eea --- /dev/null +++ b/tests/lang/bug26182.phpt @@ -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 +( +) |