<?php
eval('
class RefCallBugTester
{
public $bad = true;
function __call( $name, $args )
{
$old = error_reporting( E_ALL & ~E_WARNING );
call_user_func_array( array( $this, \'checkForBrokenRef\' ), $args );
error_reporting( $old );
}
function checkForBrokenRef( &$var )
{
if( $var )
$this->bad = false;
}
function execute()
{
$var = true;
call_user_func_array( array( $this, \'foo\' ), array( &$var ) );
}
}
$refCallBugTester = new RefCallBugTester();
$refCallBugTester->execute();
if($refCallBugTester->bad)
return $error_message;
return null;
')
- Output for 5.4.0 - 5.4.12, 5.4.14
- Parse error: syntax error, unexpected end of file in 8F6ef on line 32
Process exited with code 255. - Output for 5.4.13
- Parse error: syntax error, unexpected end of file in /in/DuobZ on line 32
Process exited with code 255. - Output for 5.3.0 - 5.3.22, 5.3.24
- Parse error: syntax error, unexpected $end in 8F6ef on line 32
Process exited with code 255. - Output for 5.3.23
- Parse error: syntax error, unexpected $end in /in/DuobZ on line 32
Process exited with code 255.
preferences:
178.21 ms | 1395 KiB | 47 Q