Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/sapi/cli/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/sapi/cli/tests/bug70470.phpt |
--TEST-- Bug #70470 (Built-in server truncates headers spanning over TCP packets) --SKIPIF-- <?php include "skipif.inc"; ?> --XFAIL-- bug is not fixed yet --FILE-- <?php include "php_cli_server.inc"; php_cli_server_start("var_dump(getAllheaders());"); $fp = fsockopen(PHP_CLI_SERVER_HOSTNAME, PHP_CLI_SERVER_PORT, $errno, $errmsg, 0.5); if (!$fp) { die("connect failed: " . $errmsg); } fwrite($fp, "GET / HTTP/1.1\r\n"); fwrite($fp, "Host: " . PHP_CLI_SERVER_HOSTNAME . "\r\n"); fwrite($fp, "Content"); fflush($fp); usleep(200000); fwrite($fp, "-Type: text/html; charset=UTF-8\r\n"); fwrite($fp, "Connection: clo"); fflush($fp); usleep(200000); fwrite($fp, "se\r\n\r\n"); while (!feof($fp)) { echo fgets($fp); } fclose($fp); ?> --EXPECTF-- HTTP/1.1 200 OK %a array(3) { ["Host"]=> string(9) "localhost" ["Content-Type"]=> string(24) "text/html; charset=UTF-8" ["Connection"]=> string(5) "close" }
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare