php-src/Zend/tests/globals_004.phpt
Nikita Popov c48b745f00 Promote "undefined array key" notice to warning
This implements the last remaining part of the
https://wiki.php.net/rfc/engine_warnings RFC.

Closes GH-5927.
2020-08-03 14:40:50 +02:00

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