php-src/sapi/cli/tests/cli_server_persistent_string001.phpt
George Peter Banyard 3bf4098eee
Refactor (again) CLI SAPI server_client struct to use zend_string* (#8605)
This time in a way which works under a RC Debug build.
2022-05-30 13:03:23 +01:00

19 lines
334 B
PHP

--TEST--
Close request before server sends a response
--SKIPIF--
<?php
include "skipif.inc";
?>
--FILE--
<?php
include "php_cli_server.inc";
php_cli_server_start();
$fd = stream_socket_client("tcp://" . PHP_CLI_SERVER_ADDRESS);
fwrite($fd, "GET /index.php HTTP/1.0\r\nHost: hello");
fclose($fd);
?>
===DONE===
--EXPECT--
===DONE===