You are here: Re: Fatal error: Exception thrown without a stack frame in Unknown on line 0 « PHP Programming Language « IT news, forums, messages
Re: Fatal error: Exception thrown without a stack frame in Unknown on line 0

Posted by R on 11/19/07 11:46

Hi all,

I found the reason - one of my class has __destruct function and was
calling
a method on object that was already destroyed by PHP5.

the solution to my problem was to call Finalize method that closes
all streams, connections, sessions etc - it was called always when
exception wasn't thrown.

so I simply added:

catch (LIZException $e)
{
$e->printDebug();
}
catch (Exception $e)
{
LIZException::printException($e);
}
// PHP5 doesn't have finally block... sux
//finally
//{
if (false == $module->isFinalized())
{
$module->Finalize();
}
//}

I'm missing the finally block very much ;)

best redards
R

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация