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
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
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
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
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