3 * Test for PHP bug #50394 (PHP 5.3.x conversion to null only, not 5.2.x)
5 class PhpRefCallBugTester
{
7 function __call( $name, $args ) {
8 $old = error_reporting( E_ALL
& ~E_WARNING
);
9 call_user_func_array( array( $this, 'checkForBrokenRef' ), $args );
10 error_reporting( $old );
12 function checkForBrokenRef( &$var ) {
19 call_user_func_array( array( $this, 'foo' ), array( &$var ) );
22 $test = new PhpRefCallBugTester();