Re: Exception thrown without a stack frame

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jochem Maas wrote:
> Jochem Maas schreef:
>> I'm getting exceptions thrown without a stackframe. I understand what
>> this
>> means but not how it can happen given the following:
>>
>> 1. *every* frontend script on the site is wrapped in a try/catch block
>> 2. I have set an exception handler to dump these so-called uncaught
>> exceptions
>> in the error log
>>
>> I use APC on the site/server in question but it doesn't matter whether
>> I actually
>> load or use APC as to whether these uncaught exceptions occur.
>>
>> I can't seem to reproduce the problem from my own browser - although it's
>> difficult to determine much from the log given the lack of information
>> in any
>> entry referring to 'exception thrown without a stack frame' -
>> apparently the
>> uncaught exception is not causing users to see broken or blank pages.
>>
>> The problem only occurs on the production server, I can't reproduce it
>> on my test server no matter how hard I push with ab.
>>
>> I haven't updated php for quite a long time which is at version 5.1.1
>>
>> has anyone ever experienced something like this? anyone have any clue
>> as to
>> what it might be.
> 
> I'd like to add that the exception handler is set after 6 files are
> included,
> 2 of them just define constants and 4 of them define classes related to
> exception/error/msg handling - none of the 6 files contain a 'throw'
> statement
> anywhere *and* none of them include any other files.
> 
> I am completely stumped.
> 
>>
>> tia
>>

I just spotted this in the manual page for "date_create":

When using these functions inside of destructors or functions called as a result
of being registered with register_shutdown_handler, be sure to use date_create()
instead of new DateTime().  This is because new DateTime will throw an exception
on failure, which is not permitted in any of the above circumstances.  If new
DateTime() does fail in one of these circumstances, you will get an error
stating "Fatal error: Exception thrown without a stack frame in Unknown on line 0."

Maybe there's a clue for you in there?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux