<?php
class Nigger
{
function __construct()
{
if(defined(__METHOD__)) {
echo __METHOD__;
}
else {
throw new Exception('Const not defined :(');
}
}
}
$cottonCollector = new Nigger();
Fatal error: Uncaught Exception: Const not defined :( in /in/FSBKW:10
Stack trace:
#0 /in/FSBKW(16): Nigger->__construct()
#1 {main}
thrown in /in/FSBKW on line 10
Process exited with code 255.
Fatal error: Uncaught exception 'Exception' with message 'Const not defined :(' in /in/FSBKW:10
Stack trace:
#0 /in/FSBKW(16): Nigger->__construct()
#1 {main}
thrown in /in/FSBKW on line 10
Process exited with code 255.
Output for 5.0.3 - 5.0.4
Fatal error: Uncaught exception 'Exception' with message 'Const not defined :(' in /in/FSBKW:10
Stack trace:
#0 /in/FSBKW(10): Nigger::__construct()
#1 /in/FSBKW(16): Nigger->__construct()
#2 {main}
thrown in /in/FSBKW on line 10
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_NEW in /in/FSBKW on line 10
Process exited with code 255.