# __sleep and hidden variables

- Thread: https://externals.io/message/14048
- Original archive: https://news-web.php.net/php.internals/14048
- Started by Alan Knowles on 2004-12-12T13:41:50+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #14048 — Alan Knowles — 2004-12-12T13:41:50+00:00

URL: https://externals.io/message/14048#14048

I'm trying to serialize DBDO objects, which contain alot of hidden 
information at present, within the bound object.

looking at the serialization code, it appears to only access the  
zval.value.obj.properties directly, rather than calling the 
property_read handler on the object. - are there any plans to change 
this..???

I guess my other option is to create private variables on the __sleep 
call, although this adds another layer of complexity to the hidden 
variable memory managment.

Regards
Alan

---

## #14049 — Marcus Boerger — 2004-12-12T14:20:58+00:00

URL: https://externals.io/message/14048#14049 · In reply to: #14048

Hello Alan,

  the current plan is to write two new handlers that store/read the object
from a string and have the old handlers as a fallback if implemented.

regards
marcus

Sunday, December 12, 2004, 2:41:50 PM, you wrote:

> I'm trying to serialize DBDO objects, which contain alot of hidden 
> information at present, within the bound object.

> looking at the serialization code, it appears to only access the  
> zval.value.obj.properties directly, rather than calling the 
> property_read handler on the object. - are there any plans to change 
> this..???

> I guess my other option is to create private variables on the __sleep 
> call, although this adds another layer of complexity to the hidden 
> variable memory managment.

> Regards
> Alan




-- 
Best regards,
 Marcus                            mailto:helly@php.net
