ID: 38726
Updated by: [EMAIL PROTECTED]
Reported By: jiri dot brachtl at centrum dot cz
-Status: Open
+Status: Feedback
Bug Type: Class/Object related
Operating System: Windows XP SP2
PHP Version: 5.1.6
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2006-09-05 17:04:43] jiri dot brachtl at centrum dot cz
Missing 'c' in function name is_subclass_of. Not so important.
------------------------------------------------------------------------
[2006-09-05 16:58:48] jiri dot brachtl at centrum dot cz
Description:
------------
__autoload() fails to load class, when its name is used in the first
parameter of is_sublass_of().
Reproduce code:
---------------
function __autoload($className) {
require_once $className . ".php";
}
//Both ClassName1 and ClassName2 are defined in separate files
print_r(
is_sublass_of("ClassName1", "ClassName2")
);
Expected result:
----------------
0 or 1
Actual result:
--------------
//nothing, like void return type
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38726&edit=1