Ticket #63 (closed defect: fixed)

Opened 1 year ago

Last modified 11 months ago

Do not cache annotations with Foo.class arguments

Reported by: schst Assigned to: 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

06/06/07 01:10:56 changed by mikey

More and more I get the clue why Java is that slow... implementing all this stuff will make any application in PHP as slow as doing it right away in Java.

06/10/07 12:18:21 changed by mikey

  • status changed from new to closed.
  • resolution set to fixed.

Fixed with changeset 725.

07/02/07 10:40:45 changed by

  • milestone deleted.

Milestone 0.2.0 deleted