<?php
class Test
{
public function a($buffer) {
var_dump($buffer);
}
public function b($buffer) {
var_dump($buffer);
}
}
$test = new Test();
ob_start(array($test, 'a'));
echo ' 1 ';
ob_start(array($test, 'b'));
echo ' 2 ';
ob_end_flush();
ob_end_flush();
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/Y2pnF on line 4
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/Y2pnF on line 4
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/Y2pnF on line 4
Process exited with code 255.