Infinite throwing in constructor
Posted
by Mikulas Dite
on Stack Overflow
See other posts from Stack Overflow
or by Mikulas Dite
Published on 2010-05-14T19:36:31Z
Indexed on
2010/05/14
19:44 UTC
Read the original article
Hit count: 205
php
What happens to a php script which goes like this?
class FooException extends Exception
{
public function __construct() {
throw new FooException;
}
}
It's probably same as
while (TRUE) {
new Exception();
}
It simply time outs when execution time is exceeded, or fails with some fatal error?
© Stack Overflow or respective owner