diff options
author | foobar <sniper@php.net> | 2003-11-25 09:20:56 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-11-25 09:20:56 +0000 |
commit | f280bc373554cfabc477be00b6b31a40b2b561cd (patch) | |
tree | 91affc54d109e9b5386cb389e7aad27636e6aa54 /tests/lang/bug26182.phpt | |
parent | 7a3ad4172f8442813fc8e4dcdb5fa5bda4af8ade (diff) | |
download | php-git-f280bc373554cfabc477be00b6b31a40b2b561cd.tar.gz |
test case for bug #26182
Diffstat (limited to 'tests/lang/bug26182.phpt')
-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 +( +) |