Re: PHP 4.0 Bug #7619: serialize() works not correct with cascaded objects in some circumstances
| From: | Wieker Guido | Date: | Wed, 29 Nov 2000 21:04:50 +0000 |
| Subject: | Re: PHP 4.0 Bug #7619: serialize() works not correct with cascaded objects in some circumstances | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-39630@lists.php.net to get a copy of this message | ||
Hi Zeev,
sorry that this took so long - hollidays...
Try my Script on PHP 3.0.1x and you'll see it works. Then try it on PHP
4.0.3pl1 and you'll see that is produces an Error. Take a look on the
printed serialized object and you'll see the difference.
CU,
Guido
On Fri, 3 Nov 2000, Zeev Suraski wrote:
> Can you provide a reproducing script?
>
> Thanks,
>
> Zeev
>
> At 15:13 03/11/2000, i088@informatik.fh-wuerzburg.de wrote:
> >From: i088@informatik.fh-wuerzburg.de
> >Operating system: Win9x / Linux
> >PHP version: 4.0.3pl1
> >PHP Bug Type: Unknown/Other Function
> >Bug description: serialize() works not correct with cascaded objects in
> >some circumstances
> >
> >serialize() works not correct with cascaded objects in some
> >circumstances (on PHP 3.0.1x this worked correct !!) :
> >You have an object whitch contains "normal" variables like integers,
> >strings and also other objects. These other objects also contains
> >integers, strings etc. and again objects:
> >
> >object 1 --- variable 11
> > |- variable 12
> > | :
> > |- variable 1x
> > |- object 2 --- variable 21
> > |- variable 22
> > | :
> > |- variable 2x
> > |- object 3 --- variable 31
> > | :
> > |- variable 3x
> >
> >Under some circumstances the output that serialize() produces does only
> >contain the top-level object (object 1)with its "normal" variables
> >(variable 11 ... variable 1x). The other objects (object 2 and 3) with all
> >there variables are lost.
> >
> >
> >--
> >Edit Bug report at: http://bugs.php.net/?id=7619&edit=1
> >
> >
> >
> >--
> >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
>
> --
> Zeev Suraski <zeev@zend.com>
> http://www.zend.com/
>
>