Ticket #63 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Changed 3 years ago 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.

Changed 3 years ago by mikey

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

Fixed with changeset 725.

Changed 3 years ago by anonymous

  • milestone 0.2.0 deleted

Milestone 0.2.0 deleted

Note: See TracTickets for help on using tickets.