News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Andrea Giammarchi's Blog:
PHP Serialization And Recursion Demystified
September 09, 2009 @ 15:39:11

Andrea Giammarchi has posted a new item to his blog looking at freezing and unfreezing objects and variables in PHP apps. Specifically he points out a few gotchas to watch out for.

PHP has different in-core callbacks able to help us with daily deployment, debug, improvements. At the same time, PHP is loads of intrinsic "gotcha", too often hard to understand, hard to explain, or simply hard to manage. One common problem is about debug, caching, or freezing, and the way we would like to debug, cache, or freeze, variables.

He presents the problem - serializing variable information to "freeze" it and how recursion can cause problems down the line. He looks at the two different kinds of recursion (recursion and recursion by reference) and, after looking at a few possible solutions to fix things, eventually comes down to a way to remove the recursion "without losing it".

0 comments voice your opinion now!
recursion serialize tutorial freeze


blog comments powered by Disqus

Similar Posts

Thomas Weinert's Blog: Using PHP DOM With XPath

Marcelo Gornstein's Blog: Writing PHP applications with Doctrine2 as ORM and Ding as DI container

DevShed: Handling File Data with PHP (Reading & Seeking)

Greg Bulmash's Blog: Creating A Simple Rating Script With PHP And MySQL

ScratchProjects.com: Build an RSS Feed Reader using Ajax and PHP


Community Events





Don't see your event here?
Let us know!


community podcast introduction deployment release zendserver symfony interview install series opinion voicesoftheelephpant laravel unittest framework library language package bugfix api

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework