<?php
class DebugRII {
public function beginChildren() { echo __METHOD__, "\n"; }
public function beginIteration() { echo __METHOD__, "\n"; }
public function callGetChildren() { echo __METHOD__, "\n"; }
public function callHasChildren() { echo __METHOD__, "\n"; }
public function endChildren() { echo __METHOD__, "\n"; }
public function endIteration() { echo __METHOD__, "\n"; }
}
$array = array("A","B","C");
$iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($array));
while ( $iterator->valid() ) {
echo $iterator->current() ;
$iterator->next();
}
?>
Fatal error: Class 'RecursiveArrayIterator' not found in /in/CdDnK on line 11
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/CdDnK on line 3
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/CdDnK on line 3
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/CdDnK on line 3
Process exited with code 255.