mirror of
https://github.com/php/php-src.git
synced 2025-01-05 18:33:56 +08:00
c48b745f00
This implements the last remaining part of the https://wiki.php.net/rfc/engine_warnings RFC. Closes GH-5927.
29 lines
373 B
PHP
29 lines
373 B
PHP
--TEST--
|
|
globals in local scope - 3
|
|
--INI--
|
|
variables_order="egpcs"
|
|
--FILE--
|
|
<?php
|
|
|
|
function test() {
|
|
include __DIR__."/globals.inc";
|
|
}
|
|
|
|
test();
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
bool(true)
|
|
bool(false)
|
|
string(5) "array"
|
|
int(%d)
|
|
string(%d) "%s"
|
|
|
|
Warning: Undefined array key "PHP_SELF" in %s on line %d
|
|
NULL
|
|
|
|
Warning: Undefined variable $_SERVER in %s on line %d
|
|
NULL
|
|
Done
|