|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-04-15 22:30 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2015-04-15 22:30 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 06:00:01 2025 UTC |
Description: ------------ I was working with some serialization and I found that if there's a null byte in the $_GET variable the variable and the string disappear. I'm not sure why a serialized object is using a null byte for private or protected members in the first place, as null bytes are used for termination. Test script: --------------- on the server: <?php print_r($_REQUEST); ?> Expected result: ---------------- If we send a request: GET /bla.php? rest_data=O:14:"LoadsCacheFile":11{s:12:"\x00*\x00_FileName";s:5:"Cache";} HTTP/1.0 Host: 192.168.98.134 reply: 'array (\n' array ( 'rest_data' => 'O:14:"LoadsCacheFile":11:{s:12:"', )