diff options
author | Sterling Hughes <sterling@php.net> | 2003-07-02 04:30:45 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2003-07-02 04:30:45 +0000 |
commit | dc22926f494ad628690c2041f3daf21fa4ebd45c (patch) | |
tree | 879e51d2cef16378138a8292a1648b0eeda183dc /tests | |
parent | e724e4cbdb9da66e6dfde6bc151581616854bcfb (diff) | |
download | php-git-dc22926f494ad628690c2041f3daf21fa4ebd45c.tar.gz |
add a test for get_parent_class() bug
Diffstat (limited to 'tests')
-rw-r--r-- | tests/classes/bug24445.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/classes/bug24445.phpt b/tests/classes/bug24445.phpt new file mode 100644 index 0000000000..8cc1db54a2 --- /dev/null +++ b/tests/classes/bug24445.phpt @@ -0,0 +1,12 @@ +--TEST-- +Bug #24399: get_parent_class() returns the current class when passed an object +--FILE-- +<?php +class Test { } +var_dump(get_parent_class('Test')); +$t = new Test; +var_dump(get_parent_class($t)); +?> +--EXPECT-- +bool(false) +bool(false) |