mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
test case for bug #26182
This commit is contained in:
parent
7a3ad4172f
commit
f280bc3735
1 changed files with 25 additions and 0 deletions
25
tests/lang/bug26182.phpt
Normal file
25
tests/lang/bug26182.phpt
Normal 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
|
||||
(
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue