Re: Re: Unserialize strings patch

From: Date: Thu, 24 Jun 1999 06:46:26 +0000
Subject: Re: Re: Unserialize strings patch
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-7488@lists.php.net to get a copy of this message
Could this be a magic_quotes issue? Jim On Jun 24, Thies C. Arntzen wrote: > 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 > > > -- > PHP Development Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#7488) next »