Re: Re: Regarding serialize
| From: | Evert | Filemobile | Date: | Tue, 18 Aug 2009 23:46:06 +0000 |
| Subject: | Re: Re: Regarding serialize | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45315@lists.php.net to get a copy of this message | ||
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