Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
sapi /
cgi /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
001.phpt
324
B
-rw-rw-r--
2022-10-31 11:36
002.phpt
1.08
KB
-rw-rw-r--
2022-10-31 11:36
003.phpt
1.13
KB
-rw-rw-r--
2022-10-31 11:36
004.phpt
777
B
-rw-rw-r--
2022-10-31 11:36
005-win32.phpt
483
B
-rw-rw-r--
2022-10-31 11:36
005.phpt
486
B
-rw-rw-r--
2022-10-31 11:36
006.phpt
947
B
-rw-rw-r--
2022-10-31 11:36
007.phpt
387
B
-rw-rw-r--
2022-10-31 11:36
008.phpt
2.18
KB
-rw-rw-r--
2022-10-31 11:36
009.phpt
523
B
-rw-rw-r--
2022-10-31 11:36
010.phpt
947
B
-rw-rw-r--
2022-10-31 11:36
011.phpt
2.74
KB
-rw-rw-r--
2022-10-31 11:36
apache_request_headers.phpt
1.43
KB
-rw-rw-r--
2022-10-31 11:36
apache_response_headers.phpt
901
B
-rw-rw-r--
2022-10-31 11:36
bug60677.phpt
175
B
-rw-rw-r--
2022-10-31 11:36
bug61605.phpt
587
B
-rw-rw-r--
2022-10-31 11:36
bug69487.phpt
16.54
KB
-rw-rw-r--
2022-10-31 11:36
bug75574_utf8.phpt
574
B
-rw-rw-r--
2022-10-31 11:36
bug78323.phpt
769
B
-rw-rw-r--
2022-10-31 11:36
bug80849-cgi.phpt
1.16
KB
-rw-rw-r--
2022-10-31 11:36
bug81518a.phpt
315
B
-rw-rw-r--
2022-10-31 11:36
bug81518b.phpt
281
B
-rw-rw-r--
2022-10-31 11:36
include.inc
1.42
KB
-rw-rw-r--
2022-10-31 11:36
skipif.inc
163
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- header_remove() --SKIPIF-- <?php include "skipif.inc"; ?> --FILE-- <?php include "include.inc"; $php = get_cgi_path(); reset_env_vars(); $f = tempnam(sys_get_temp_dir(), 'cgitest'); function test($script) { file_put_contents($GLOBALS['f'], $script); $cmd = escapeshellcmd($GLOBALS['php']); $cmd .= ' -n -dreport_zend_debug=0 -dhtml_errors=0 ' . escapeshellarg($GLOBALS['f']); echo "----------\n"; echo rtrim($script) . "\n"; echo "----------\n"; passthru($cmd); } test('<?php ?>'); test('<?php header_remove(); ?>'); test('<?php header_remove("X-Foo"); ?>'); test('<?php header("X-Foo: Bar"); ?>'); test('<?php header("X-Foo: Bar"); header("X-Bar: Baz"); header_remove("X-Foo"); ?>'); test('<?php header("X-Foo: Bar"); header_remove("X-Foo: Bar"); ?>'); test('<?php header("X-Foo: Bar"); header_remove("X-Foo:"); ?>'); test('<?php header("X-Foo: Bar"); header_remove(); ?>'); test('<?php header_remove(""); ?>'); test('<?php header_remove(":"); ?>'); test('<?php header("X-Foo: Bar"); echo "flush\n"; flush(); header_remove("X-Foo"); ?>'); @unlink($f); ?> --EXPECTF-- ---------- <?php ?> ---------- X-Powered-By: PHP/%s Content-type: text/html; charset=UTF-8 ---------- <?php header_remove(); ?> ---------- Content-type: text/html; charset=UTF-8 ---------- <?php header_remove("X-Foo"); ?> ---------- X-Powered-By: PHP/%s Content-type: text/html; charset=UTF-8 ---------- <?php header("X-Foo: Bar"); ?> ---------- X-Powered-By: PHP/%s X-Foo: Bar Content-type: text/html; charset=UTF-8 ---------- <?php header("X-Foo: Bar"); header("X-Bar: Baz"); header_remove("X-Foo"); ?> ---------- X-Powered-By: PHP/%s X-Bar: Baz Content-type: text/html; charset=UTF-8 ---------- <?php header("X-Foo: Bar"); header_remove("X-Foo: Bar"); ?> ---------- X-Powered-By: PHP/%s X-Foo: Bar Content-type: text/html; charset=UTF-8 Warning: Header to delete may not contain colon. in %s on line 3 ---------- <?php header("X-Foo: Bar"); header_remove("X-Foo:"); ?> ---------- X-Powered-By: PHP/%s X-Foo: Bar Content-type: text/html; charset=UTF-8 Warning: Header to delete may not contain colon. in %s on line 3 ---------- <?php header("X-Foo: Bar"); header_remove(); ?> ---------- Content-type: text/html; charset=UTF-8 ---------- <?php header_remove(""); ?> ---------- X-Powered-By: PHP/%s Content-type: text/html; charset=UTF-8 ---------- <?php header_remove(":"); ?> ---------- X-Powered-By: PHP/%s Content-type: text/html; charset=UTF-8 Warning: Header to delete may not contain colon. in %s on line 2 ---------- <?php header("X-Foo: Bar"); echo "flush\n"; flush(); header_remove("X-Foo"); ?> ---------- X-Powered-By: PHP/%s X-Foo: Bar Content-type: text/html; charset=UTF-8 flush Warning: Cannot modify header information - headers already sent by (output started at %s:3) in %s on line 5