Ding icon indicating copy to clipboard operation
Ding copied to clipboard

proxy objects cant be cached

Open marcelog opened this issue 14 years ago • 3 comments

this is because php cant serialize static properties (the dispatcher is a static property and is set via a static method so we can set the dispatcher before constructing the object, thus allowing to aspect the constructor)

proxy should be refactored so it allows serialization.

in the meanwhile, the container wont cache proxied beans (only its definitions)

marcelog avatar Jan 02 '11 15:01 marcelog

see #39

marcelog avatar Jan 02 '11 15:01 marcelog

this is a little more complex than i thought initially. for instance, log4php wont get serialized. Also, when you cache singletons, what will happen when unserializing them?

marcelog avatar Jan 06 '11 14:01 marcelog

this may help unserialize_callback_func directive

marcelog avatar Jan 13 '11 14:01 marcelog