Re: Re: Unserialize strings patch

From: Date: Thu, 24 Jun 1999 06:38:56 +0000
Subject: Re: Re: Unserialize strings patch
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-7487@lists.php.net to get a copy of this message
could you please send us a test-case that shows the wrong behaviour? my script: <? var_dump($argv[1]); $data = serialize($argv[1]); var_dump($data); $new = unserialize($data); var_dump($new); ?> ./php ../test/serialize.php3 '"test"' output: Content-type: text/html string(6) ""test"" string(13) "s:6:""test"";" string(6) ""test"" seems allright to me. tc On Wed, 23 Jun 1999, Robert Macaulay wrote: > Well, can anyone advise me on how to send a diff without it getting > clobbered in the mail? I'd like to send in plain text, so that you do > not have to decode it. Advice? I'm attaching the clobbered diff so that > whoever the great head of the php devel team can actually use it. > > Robert Macaulay wrote: > > > > Unserialize chokes on serialized strings. Serialize encloses strings > > with backslashed quotes, while unserialize looks for quotes without > > backslashes. Heres the diff. The previous one I sent got base64 encoded. > > > clobbered diff here.. Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.dev (#7487) next »