test case for bug #26182

This commit is contained in:
foobar 2003-11-25 09:20:56 +00:00
parent 7a3ad4172f
commit f280bc3735

25
tests/lang/bug26182.phpt Normal file
View file

@ -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
(
)