- error_reporting: documentation ( source)
<?php
error_reporting(~0);
function foo(&$a) {}
function bar() { return 1; }
function &baz() { $a = 1; return $a; }
echo "bar\n";
foo(bar()); // STRICT
echo "baz\n";
foo(baz()); // Not strict
echo "scalar\n";
foo(1);