On Sat, 2009-01-03 at 14:12 +0100, Marcin Kurzyna wrote:
> as you said it's saving the zend_function member that is tricky. i
> thought i'd go with saving function string and recompiling it as you
> suggested (i don't want to mess with APC although i find the idea of
> opcode serialization much
Hi Marcus,
You would need to provide a c level serialization that stores the $this
pointer (the easy part) and the zend_function member (not easy). The
second part requires storing of all static variables, which again is
pretty easy but it also requires to store the function itself, which in
ca
Hi Marcus,
You would need to provide a c level serialization that stores the $this
pointer (the easy part) and the zend_function member (not easy). The
second part requires storing of all static variables, which again is
pretty easy but it also requires to store the function itself, which in
ca
Hello Marcin,
Friday, January 2, 2009, 8:56:41 PM, you wrote:
> Hello internals and a happy new year.
> I've been meaning to ask this for some time now: why aren't closures
> serializable? The only on-list discussion about this that i've found is:
> http://marc.info/?l=php-internals&m=119837318
Hello internals and a happy new year.
I've been meaning to ask this for some time now: why aren't closures
serializable? The only on-list discussion about this that i've found is:
http://marc.info/?l=php-internals&m=119837318407795&w=2
Personally i'd find serialization of closures very useful (