summaryrefslogtreecommitdiff
path: root/sapi/cli/tests/php_cli_server.inc
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-06-23 13:54:42 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-06-24 14:08:11 +0200
commit94df6dc3fd07fa187ba09c587a8d1357fd8bbe6f (patch)
tree37d2e99d9afe16a5c635e8006b15eb5b4669d18f /sapi/cli/tests/php_cli_server.inc
parentdf27bfe58bb7bc0b2cb8f182a94347d36e2cb6b6 (diff)
downloadphp-git-94df6dc3fd07fa187ba09c587a8d1357fd8bbe6f.tar.gz
Split test case
This test is failing on AppVeyor almost all of the time, so splitting it seems appropriate. This also allows us to rid php_cli_server_stop() which was only used by this test case.
Diffstat (limited to 'sapi/cli/tests/php_cli_server.inc')
-rw-r--r--sapi/cli/tests/php_cli_server.inc17
1 files changed, 0 insertions, 17 deletions
diff --git a/sapi/cli/tests/php_cli_server.inc b/sapi/cli/tests/php_cli_server.inc
index 1f7091be5c..6421978a37 100644
--- a/sapi/cli/tests/php_cli_server.inc
+++ b/sapi/cli/tests/php_cli_server.inc
@@ -109,21 +109,4 @@ php_cli_server_start_error:
return $handle;
}
-
-function php_cli_server_stop($handle) {
- $success = FALSE;
- if ($handle) {
- proc_terminate($handle);
- /* Wait for server to shutdown */
- for ($i = 0; $i < 60; $i++) {
- $status = proc_get_status($handle);
- if (!($status && $status['running'])) {
- $success = TRUE;
- break;
- }
- usleep(50000);
- }
- }
- return $success;
-}
?>