<?php
// Everything you enter here will be executed by our servers. Try it!
namespace Test {
function error_reporting($new_level = null) {
$arguments = array_slice(array($new_level), func_num_args());
$refFunc = new ReflectionFunction('error_reporting');
return $refFunc->invokeArgs($arguments);
}
}
namespace {
echo Test\error_reporting();
Test\error_reporting(3);
echo Test\error_reporting();
}
Fatal error: Uncaught Error: Class "Test\ReflectionFunction" not found in /in/IcjlX:7
Stack trace:
#0 /in/IcjlX(13): Test\error_reporting()
#1 {main}
thrown in /in/IcjlX on line 7
Process exited with code 255.
Fatal error: Uncaught Error: Class 'Test\ReflectionFunction' not found in /in/IcjlX:7
Stack trace:
#0 /in/IcjlX(13): Test\error_reporting()
#1 {main}
thrown in /in/IcjlX on line 7
Process exited with code 255.