This page is no longer updated - please visit http://ghostwire.com Thank you!
 

« PHPObject »
An Opensource Alternative to Flash Remoting
Current Release
Readme
Notes
Journal
Archives

Journal
Saturday April 26, 2003

Merry-go-round

Sometimes, when serializing the object to be sent to the server, I run into an endless recursive loop error. This occurs, for example, if my object has nested objects with elements making references to the parent object (you get the picture...they go round-and-round, looping within itself). I relooked at how PHP handles this situation. It strips all such problematic arrays/objects and leave the rest as usual. I have fixed the SerializerClass to do just that. Now we won't get endless recursive loops anymore. True, data is 'lost', but I follow PHP specifications for the serialization.

NOTE: as usual, the modifications I make to SerializerClass is made for PHPObject; Sephiroth maintains the original SerializerClass and makes the final decisions on official changes to the class.

Posted by sunny at April 26, 2003 07:06 PM

 

Comments

 

Post a comment









Remember personal info?







Zones



Forums