a2e46efe38
Repo mode can skip undefined variable warnings, if they're known to be uninit at compile time, and eliminate expressions whose only side effect might be to raise a diagnostic.
14 linhas
175 B
PHP
14 linhas
175 B
PHP
<?php
|
|
function foo() {
|
|
if (isset($GLOBALS['b'])) $b = 0;
|
|
return $b;
|
|
}
|
|
foo();
|
|
|
|
function baz($x) {}
|
|
function bar() {
|
|
if (isset($GLOBALS['a'])) $a = 0;
|
|
baz($a);
|
|
}
|
|
bar();
|