News Feed
Sections




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

Justin Carmony's Blog:
PHP, Sessions, __sleep, and Exceptions
March 27, 2012 @ 12:25:02

Justin Carmony has a recent post to his blog about a problem he came across where his exception was being thrown with a line number of zero - cause for some investigation.

Today I ran into a problem where my PHP Application would throw this fatal error: "Fatal error: Exception thrown without a stack frame in Unknown on line 0". Which is so much fun, because it doesn't have a line number, so I had no direction as to what exactly was causing the problem.

He found a blog post that helped him track down the issue that, as it turns out, with serializing objects into the session and an error in the __sleep method.

0 comments voice your opinion now!
exception problem sleep serialization error handler


blog comments powered by Disqus

Similar Posts

Stubbles Blog: Exception is an Inheritance Nazi

NetTuts.com: The Ins and Outs of PHP Exceptions

Till Klampaeckel' Blog: PHP parse errors with cgi and nginx

Pierre-Alain Joye's Blog: Howto use a single php.ini for cli/cgi with htscanner, use 0.7.0 or later

DevShed: Using the Sleep and Wakeup Functions to Serialize Objects in PHP (Part 2)


Community Events





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


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

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