diff options
| author | Dmitry Stogov <dmitry@php.net> | 2006-09-26 07:55:21 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2006-09-26 07:55:21 +0000 |
| commit | a04b6ed6bcdda52c3f68199b547b3968bbbadd6c (patch) | |
| tree | dc720f9ac5de5a9cb024b63a12dbef9f9915a13a /ext/reflection/tests | |
| parent | cc0d254e4f319279629c80530325d7c12dee1ec7 (diff) | |
| download | php-git-a04b6ed6bcdda52c3f68199b547b3968bbbadd6c.tar.gz | |
Fixed bug #38942 (Double old-style-ctor inheritance)
Diffstat (limited to 'ext/reflection/tests')
| -rwxr-xr-x | ext/reflection/tests/bug38942.phpt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ext/reflection/tests/bug38942.phpt b/ext/reflection/tests/bug38942.phpt new file mode 100755 index 0000000000..ce0d806bf4 --- /dev/null +++ b/ext/reflection/tests/bug38942.phpt @@ -0,0 +1,34 @@ +--TEST-- +Bug #38942 (Double old-style-ctor inheritance) +--FILE-- +<?php +class foo { + public function foo() {} +} + +class bar extends foo { +} +ReflectionClass::export("bar"); +?> +--EXPECTF-- +Class [ <user> class bar extends foo ] { + @@ %sbug38942.php 6-7 + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [2] { + Method [ <user, inherits foo, ctor> public method foo ] { + @@ %sbug38942.php 3 - 3 + } + } +} |
