xref: /PHP-7.1/tests/lang/bug26182.phpt (revision 26a0abbd)
1--TEST--
2Bug #26182 (Object properties created redundantly)
3--INI--
4error_reporting=4095
5--FILE--
6<?php
7
8class A {
9    function NotAConstructor ()
10    {
11        if (isset($this->x)) {
12            //just for demo
13        }
14    }
15}
16
17$t = new A ();
18
19print_r($t);
20
21?>
22--EXPECT--
23A Object
24(
25)
26