Re: E_STRICT 'errors' - was Are exceptions allowed in php core?

From: Date: Tue, 04 Sep 2012 16:36:30 +0000
Subject: Re: E_STRICT 'errors' - was Are exceptions allowed in php core?
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  Groups: php.internals 
Request: Send a blank email to internals+get-62802@lists.php.net to get a copy of this message
On Tue, Sep 4, 2012 at 9:43 AM, Ferenc Kovacs <tyra3l@gmail.com> wrote: > never heard of that one before. > > for example, running > <?php > for($i=0;$i<100;$i++){ > $foo="foo_".$i; > ${$foo}->bar = 123; > } > echo "done"; > > gives me 100 E_STRICT, but still executes just fine and prints "done" at > the end. > the only explanation that I can think of is that you have a custom error > handler somewhere in your code, which somehow does something unexpected > (exits the script execution or does something like an infinite recursion > which segfaults/OOMs your application. > if you still think that it isn't the case, then please open an issue on > bugs.php.net with a reproduce script, as this would be clearly a bug. I think Ferenc is correct in that this sounds like there's a custom error handler somewhere. If the custom error handler collects error info and then throws an exception (as has been detailed in various blog posts as one manner of unifying the errors), this would cause the trouble you're seeing. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

« previous php.internals (#62802) next »