#30102 [NEW]: Reflection API problems
| From: | mark at ttzn dot nl | Date: | Thu, 16 Sep 2004 03:06:53 +0000 |
| Subject: | #30102 [NEW]: Reflection API problems | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-66250@lists.php.net to get a copy of this message | ||
From: mark at ttzn dot nl
Operating system: win 2k sp4
PHP version: 5.0.1
PHP Bug Type: Class/Object related
Bug description: Reflection API problems
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 bug report at http://bugs.php.net/?id=30102&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30102&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30102&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30102&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30102&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30102&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30102&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30102&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30102&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30102&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30102&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30102&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30102&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30102&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30102&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30102&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30102&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30102&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30102&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30102&r=mysqlcfg