<?php
spl_autoload_register(function(){ echo 'throw'; throw new Exception('waa?'); });
spl_autoload_register(function(){ class A{} return true;});
new A;
throw
Fatal error: Uncaught Exception: waa? in /in/EWKqE:3
Stack trace:
#0 /in/EWKqE(6): {closure}('A')
#1 {main}
thrown in /in/EWKqE on line 3
Process exited with code 255.
throw
Fatal error: Uncaught Exception: waa? in /in/EWKqE:3
Stack trace:
#0 [internal function]: {closure}('A')
#1 /in/EWKqE(6): spl_autoload_call('A')
#2 {main}
thrown in /in/EWKqE on line 3
Process exited with code 255.
throw
Fatal error: Uncaught exception 'Exception' with message 'waa?' in /in/EWKqE:3
Stack trace:
#0 [internal function]: {closure}('A')
#1 /in/EWKqE(6): spl_autoload_call('A')
#2 {main}
thrown in /in/EWKqE on line 3
Process exited with code 255.
Output for 5.2.3 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/EWKqE on line 3
Process exited with code 255.