|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-01 18:19 UTC] sniper@php.net
[2003-07-01 23:32 UTC] sterling@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 18:00:01 2025 UTC |
Description: ------------ If a class has no parent, get_parent_class() returns different values between object and string parameters. Reproduce code: --------------- <?php define('ENDL', "\n"); class Foo { } $foo = new Foo; print '[' . get_parent_class('Foo') . ']' . ENDL; print '[' . get_parent_class($foo) . ']' . ENDL; ?> Expected result: ---------------- [] [] Actual result: -------------- [] [foo]