Bug #12058 Updated: Serialize dies for large objects

From: Date: Wed, 11 Jul 2001 17:18:11 +0000
Subject: Bug #12058 Updated: Serialize dies for large objects
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-59724@lists.php.net to get a copy of this message
ID: 12058
User updated by: joelteply@hotmail.com
Reported By: joelteply@hotmail.com
Status: Open
Bug Type: Class/Object related
Operating System: linux
PHP Version: 4.0.5
New Comment:

Serialize died because there was an object used that had a reference pointing to another reference.
(Like in a two way linked list) This created an infinite loop when trying to resolve the reference
during serialization. (Does serialize work recursively?) It was my fault for not using __sleep to
fix this beforehand. However, PHP should not die like it did. It did not throw an error or anything.
It just hit the infinite loop and then did not respond. Is it possible to check for a recursive
reference error before running serialize on the object?

Previous Comments:
------------------------------------------------------------------------

[2001-07-11 12:29:38] joelteply@hotmail.com

$timesheet = new timesheet(); //Very large object with no references
$temp=serialize($timesheet);
$timesheet->write();
//serialize causes everything to break. No error messages. The page is no longer found by the web
server. Leaving out serialize causes no bug.

------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=12058&edit=1



Thread (3 messages)

« previous php.dev (#59724) next »