/
proc
/
3430793
/
cwd
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
http
/
File Upload :
llllll
Current File: //proc/3430793/cwd/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/http/bug53198.phpt
--TEST-- Bug #53198 (From: header cannot be changed with ini_set) --SKIPIF-- <?php require 'server.inc'; http_server_skipif(); ?> --INI-- allow_url_fopen=1 from=teste@teste.pt --FILE-- <?php require 'server.inc'; function do_test() { $responses = array( "data://text/plain,HTTP/1.1 200 OK\r\n\r\n", ); ['pid' => $pid, 'uri' => $uri] = http_server($responses, $output); foreach($responses as $r) { $fd = fopen($uri, 'rb', false); fseek($output, 0, SEEK_SET); var_dump(stream_get_contents($output)); fseek($output, 0, SEEK_SET); } http_server_kill($pid); } echo "-- Test: leave default --\n"; do_test(); echo "-- Test: after ini_set --\n"; ini_set('from', 'junk@junk.com'); do_test(); ?> --EXPECTF-- -- Test: leave default -- string(%d) "GET / HTTP/1.1 From: teste@teste.pt Host: %s:%d Connection: close " -- Test: after ini_set -- string(%d) "GET / HTTP/1.1 From: junk@junk.com Host: %s:%d Connection: close "
Copyright ©2k19 -
Hexid
|
Tex7ure