Re: PHP 4.0 Bug #2313: PHP4 unserializes a PHP3 serialized object as a boolean
| From: | Thies C. Arntzen | Date: | Thu, 16 Sep 1999 08:05:56 +0000 |
| Subject: | Re: PHP 4.0 Bug #2313: PHP4 unserializes a PHP3 serialized object as a boolean | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-10987@lists.php.net to get a copy of this message | ||
Manuel Lemos wrote:
>
> 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 does now (fixed in CVS).
but PHP3 will *NOT* deserialize PHP4 objects! (and probably will
never;-)
tc
>
> 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
> --
>
> --
> 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
--
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