News Feed
Sections




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

Terry Chay's Blog:
serialization without pity
March 21, 2007 @ 12:02:00

In response to a post from the Stubbles blog, Terry Chay has posted some of his thoughts about the serialization solution presented in the other post.

Frank Kleine writes a PHP 5 framework called Stubbles. I have a long-standing view about frameworks that hasn't changed one bit. But instead of arguing about the Sysaphean task Frank is engaging in, I'll show what my approach is to one small component (while being a bit jealous that he can actually develop in PHP 5).

Frank's solution involves storing the objects in the session, serializing them first. The issue comes up when the class(es) the object needs aren't included into the page. Terry offers a different sort of solution - one also using __autoload, but using it combined with unserialize_callback_func.

Terry compares this with Frank's approach and notes that his method "closes off" the system from the very PHP functions that could make his life simpler (making a separate handling system). He also includes a method for doing the same when all you know is the class file's name (non-PEAR format).

0 comments voice your opinion now!
serialization pity stubbles framework article response autoload unserializecallbackfunc serialization pity stubbles framework article response autoload unserializecallbackfunc


blog comments powered by Disqus

Similar Posts

IBM developerWorks: Understanding the Zend Framework, Part 1: The basics

Kristopher Wilson: Decoupling the Framework

Paul Jones' Blog: Solar 0.27.0 and 0.27.1 Released

Paul Jones' Blog: New Year's Benchmarks

Chris Hartjes' Blog: 10 Days Later - Early Impressions of CakePHP vs. CodeIgniter


Community Events





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


conference podcast tips bugfix list introduction symfony zendserver code voicesoftheelephpant interview threedevsandamaybe series api release deployment community laravel framework language

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