ID:               24445
 Updated by:       [EMAIL PROTECTED]
 Reported By:      thixit at yahoo dot com
-Status:           Open
+Status:           Verified
 Bug Type:         Zend Engine 2 problem
-Operating System: Windows 98SE
+Operating System: *
-PHP Version:      5.0.0b1 (beta1)
+PHP Version:      5.0.0b2-dev
 New Comment:

Verified with PHP 4.3.3RC2-dev: Works.
Verified with PHP 5.0.0b2-dev:  Broken?



Previous Comments:
------------------------------------------------------------------------

[2003-07-01 14:43:58] thixit at yahoo dot com

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 this bug report at http://bugs.php.net/?id=24445&edit=1

Reply via email to