Ticket #63 (closed defect: fixed)
Do not cache annotations with Foo.class arguments
| Reported by: | schst | Owned by: | mikey |
|---|---|---|---|
| Priority: | critical | Milestone: | |
| Component: | ReflectionApi | Version: | SVN-trunk |
| Keywords: | Cc: |
Description
I just found another PHP annoyance: It is not possible to serialize and unserialize instances of ReflectionClass:
$clazz = new stubReflectionClass('BoldProcessor');
$clazz = unserialize(serialize($clazz));
$clazz->newInstance();
This will result in:
Fatal error: Internal error: Failed to retrieve the reflection object in ...complex.php on line 63
So we either do not cache these annotations, or we write a special serializer for these classes or we finally switch to a real programming language :)
Change History
Note: See
TracTickets for help on using
tickets.
