|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-10-12 16:28 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 14:00:01 2025 UTC |
Description: ------------ This is not so much a bug report, but more of a remark - I just didn't know where to put it. When serializing strings PHP includes double quotes. Seeing as it also stores the size, aren't quotes just a waste of space? I can't see them serving any purpose - any parser will merely read in the size and then read that many characters. Reproduce code: --------------- $str = serialize( array( "company" => "101_e", "country => "101_3", ) ); echo( $str ); Expected result: ---------------- a:2:{s:7:company;s:5:101_e;s:7:country;s:5:101_3;} Actual result: -------------- a:2:{s:7:"company";s:5:"101_e";s:7:"country";s:5:"101_3";}