From: thixit at yahoo dot com
Operating system: Windows 98SE
PHP version: 5.0.0b1 (beta1)
PHP Bug Type: Class/Object related
Bug description: get_parent_class returns different values
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]
--
Edit bug report at http://bugs.php.net/?id=24445&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24445&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24445&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24445&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24445&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24445&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24445&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24445&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24445&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24445&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24445&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24445&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24445&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24445&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24445&r=gnused