blob: f8d4c28338e35ef21404ebb9e9c5bba85b4b1a5f (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
--TEST--
header() and friends
--FILE--
<?php
$v1 = headers_sent();
$v2 = headers_list();
var_dump(header("HTTP 1.0", true, 200));
var_dump($v1);
var_dump($v2);
var_dump(header(""));
var_dump(header("", true));
var_dump(headers_sent());
var_dump(headers_list());
var_dump(header("HTTP blah"));
var_dump(header("HTTP blah", true));
var_dump(headers_sent());
var_dump(headers_list());
echo "Done\n";
?>
--EXPECTF--
NULL
bool(false)
array(0) {
}
Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s on line %d
NULL
Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s on line %d
NULL
bool(true)
array(0) {
}
Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s on line %d
NULL
Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s on line %d
NULL
bool(true)
array(0) {
}
Done
|