Infinite throwing in constructor
- by Mikulas Dite
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?