summaryrefslogtreecommitdiff
path: root/Zend/tests/globals_004.phpt
blob: 27520a220c5e76f5d27f291d008fc8e561c793e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--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