Re: [PHP-DEV] Exception thrown without a stack frame

2007-07-05 Thread Richard Lynch
On Sat, June 30, 2007 9:55 am, Jakob Buchgraber wrote: > Okay, I can now reproduce the problem. Here is the code: > class Foo { > public function __destruct() { > throw new Exception(); > } > } > > $a = new Foo(); > ?> > > I couldn't reproduce it before as I didn't assign the in

Re: [PHP-DEV] Exception thrown without a stack frame

2007-06-30 Thread Ralph Schindler
I've run into this before.. essentially, you can't do that ;) http://us2.php.net/language.oop5.decon (second note) Nor, can you throw exceptions anytime after the engine starts shutting down. -ralph Jakob Buchgraber wrote: Okay, I can now reproduce the problem. Here is the code: I couldn't

Re: [PHP-DEV] Exception thrown without a stack frame

2007-06-30 Thread Jakob Buchgraber
Okay, I can now reproduce the problem. Here is the code: I couldn't reproduce it before as I didn't assign the instance of Foo to a variable, however Christian Hoffmann pointed me out that I need to do this in order to get the desired error. - Jakob -- PHP Internals - PHP Runtime Developmen

Re: [PHP-DEV] Exception thrown without a stack frame

2007-06-30 Thread Jakob Buchgraber
Richard Lynch wrote: I would guess that an exception is getting thrown before you PHP script has actually started... Something in the parsing of GET/POST data or file upload handler, perhaps. Definitely not. I was just testing my Logging class in Zend Studio. So no input GET/POST data were p

Re: [PHP-DEV] Exception thrown without a stack frame

2007-06-28 Thread Richard Lynch
I would guess that an exception is getting thrown before you PHP script has actually started... Something in the parsing of GET/POST data or file upload handler, perhaps. Can you nail down what was being done when it occurred, perhaps by sending the error to Apache error log, and then looking at