mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
add a test for get_parent_class() bug
This commit is contained in:
parent
e724e4cbdb
commit
dc22926f49
1 changed files with 12 additions and 0 deletions
12
tests/classes/bug24445.phpt
Normal file
12
tests/classes/bug24445.phpt
Normal file
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue