- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.24
- Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/1nF2c on line 15
Process exited with code 255.
<?php
class segfault {
private static $id = 0;
public $name;
public function __construct() {
self::$id++;
$this->name = getclass.'-'.self::$id;
}
}
function string_sfault($s) {
echo $s.': '.strlen($s).PHP_EOL
}
$stack = array()
for($i=0;$i<101;$i++) {
$sf = new segfault();
$stack[] = $sf;
string_sfault($sf);
}
?>