-
Notifications
You must be signed in to change notification settings - Fork 5
/
010_all.phpt
59 lines (46 loc) · 1.07 KB
/
010_all.phpt
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--TEST--
Debug_ErrorHook_TextNotifier: make text version of a notification
--FILE--
<?php
require dirname(__FILE__) . '/init.php';
$_SERVER = array("test" => "variable", "HTTP_HOST" => "example.com", "REQUEST_URI" => "/some/page?args", "GATEWAY_INTERFACE" => "CGI");
$_GET = array("get" => "var");
$_POST = array("post" => "var");
$_COOKIE = array("cookie" => "var");
$_SESSION = array("session" => "var");
function f() { echo $a; }
f();
?>
--EXPECT--
Text notification:
------------------
Subject: E_NOTICE: Undefined variable: a at * on line *
//example.com/some/page?args
E_NOTICE: Undefined variable: a
at * on line *
TRACE:
#0 f() called at [*:*]
SERVER:
array(
"test" => "variable",
"HTTP_HOST" => "example.com",
"REQUEST_URI" => "/some/page?args",
"GATEWAY_INTERFACE" => "CGI",
)
COOKIES:
array(
"cookie" => "var",
)
GET:
array(
"get" => "var",
)
POST:
array(
"post" => "var",
)
SESSION:
array(
"session" => "var",
)
Error [8]: Undefined variable: a in * on line *