で、PHPはどうかというと、

<?
error_reporting(E_ALL);

function foo($arg) {
print "$arg\n";
}

function bar() {
print "$arg";
}

foo("hello");

実行すると、出ました、「hello」。残念ながらerror_reporting()はbar()を見てません。アッザース。