xref: /PHP-8.3/tests/classes/bug24445.phpt (revision 4d349926)
1--TEST--
2Bug #24445 (get_parent_class() returns the current class when passed an object)
3--FILE--
4<?php
5class Test { }
6var_dump(get_parent_class('Test'));
7$t = new Test;
8var_dump(get_parent_class($t));
9?>
10--EXPECT--
11bool(false)
12bool(false)
13