File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
standard /
tests /
general_functions /
head.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:04 2012 UTC (12 years, 6 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
header() and friends
--SKIPIF--
<?php
if (php_sapi_name() != "cli") {
die("skip this test is for CLI");
}
?>
--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
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>