ID: 30102 User updated by: mark at ttzn dot nl Reported By: mark at ttzn dot nl Status: Open Bug Type: Class/Object related Operating System: win 2k sp4 PHP Version: 5.0.1 New Comment:
This seems to only occur when zend.ze1_compatibility_mode is set to On. Is this then still a bug or is it just me not understanding something? Previous Comments: ------------------------------------------------------------------------ [2004-09-16 05:06:51] mark at ttzn dot nl Description: ------------ When I wanted to test the reflection function in PHP5.0.1 I stumbled upon something strange. For some reason it gives me an error that I did not expect especially not from the example codes in the manual. The error: Trying to clone an uncloneable object of class ReflectionFunction ... is quite strange ... Either I am doing something wrong or this is a real bug. Please help me becouse I like to use the reflection API. Reproduce code: --------------- http://www.php.net/manual/en/language.oop5.reflection.php Example 18-28. Using the ReflectionFunction class Expected result: ---------------- Not the error Actual result: -------------- Fatal error: Trying to clone an uncloneable object of class ReflectionFunction in D:\hosted\stuff\test.php on line 15 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30102&edit=1