Protected properties are serialized as:

0x00 + * + 0x00 + property name

The null characters don't show up in your console, but pipe the output through for example 'hexdump -C' and you should see them..

Evert

On 19-Aug-09, at 1:37 AM, Chris Stockton wrote:

Apologies for the double post, but the output might help... long day.
Notice the strlen is different, as well as the truncation on
escapeshellarg.

--

string(43) "O:13:"testSerialize":1:{s:7:"*_foo";a:0:{}}"
string(45) "O:13:"testSerialize":1:{s:7:"*_foo";a:0:{}}"
bool(false)
string(45) "'O:13:"testSerialize":1:{s:7:"*_foo";a:0:{}}'"
string(31) "'O:13:"testSerialize":1:{s:7:"'"

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to