|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-05 02:43 UTC] helly@php.net
[2004-01-05 15:30 UTC] r2cosmin at rdstm dot ro
[2004-01-05 16:47 UTC] helly@php.net
[2004-01-11 10:50 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 08:00:01 2025 UTC |
Description: ------------ Php craches when trying to serialize objects with deep recursive references. It only works with two objects, each having a reference to the other. When using three or more objects in a circular chain, it crashes badly. I have written a simplified example for help. Thanks. PS. I have found this bug ( and bug reports on it ) in the past but it doesn't seem to be fixed. Maybe it has reapered in php5. Reproduce code: --------------- <? class A { public $b; } class B { public $c; } class C { public $a; } $a = new A(); $b = new B(); $c = new C(); $a->b = $b; $b->c = $c; $c->a = $a; echo serialize($a); ?> Expected result: ---------------- some serializaton string Actual result: -------------- Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, r2cosmin@msn.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. -------------------------------------------------------------------------------- Apache/2.0.45 (Win32) Server at 127.0.0.1 Port 80