Re: PHP 4.0 Bug #2313: PHP4 unserializes a PHP3 serialized object as a boolean

From: Date: Thu, 16 Sep 1999 03:14:23 +0000
Subject: Re: PHP 4.0 Bug #2313: PHP4 unserializes a PHP3 serialized object as a boolean
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-10985@lists.php.net to get a copy of this message
Hello Sascha, On 16-Sep-99 05:40:02, you wrote: >On Thu, Sep 16, 1999 at 12:15:29AM -0000, mlemos@acm.org wrote: >> From: mlemos@acm.org >> Operating system: LinuX RH 5.2 >> PHP version: 4.0 Latest CVS (15/09/1999) >> PHP Bug Type: Misbehaving function >> Bug description: PHP4 unserializes a PHP3 serialized object as a boolean >> >> Try this example to see the problem. > The format is not written in stone and is subject to change. But isn't PHP4 going to be able to unserialize PHP3 serialized objects? It's not my case, but I'm afraid that there is already many people storing PHP3 serialized data in databases. If PHP4 is not able to unserialize data serialized by PHP3, people's applications will break in PHP 4 and they might not want to move to PHP 4 because of that. I noticed this problem because I am using serialization to cache data structures built by parsing XML data. There seems to remain some problem with PHP4's XML parser code, so the parser trashes my data structures. I could not reproduce this behaviour with a simple script. That's why I haven't filled a report for this XML problem. Maybe someone else will figure it soon or later. So, I just ran PHP3 to parse and cache > If you need something more portable, use WDDX. ok. Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?user=mlemos@acm.org -- E-mail: mlemos@acm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --

« previous php.dev (#10985) next »