<?php
class Crasher extends DateInterval {
public function __construct($time_spec) {
echo "Yes i did it, with the next statement it gives a segfault\n";
// It doesn't matter if we take the y parameter or any other.
$this->y = 3;
}
}
$c = new Crasher('blah');
?>
Fatal error: Class 'DateInterval' not found in /in/EG1PO on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/EG1PO on line 5
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/EG1PO on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/EG1PO on line 5
Process exited with code 255.