Commit:    36100060b31ba85d5c70669168cfd418522884ce
Author:    Xinchen Hui <larue...@php.net>         Wed, 1 Aug 2012 23:54:01 +0800
Parents:   7398029e0676964b7b16219c1a9696d3a7c345c9
Branches:  PHP-5.4

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=36100060b31ba85d5c70669168cfd418522884ce

Log:
Sleep a little bit more, in some slow machine (like gcov), it will take a 
little more time to setup server

Changed paths:
  M  sapi/cli/tests/php_cli_server.inc


Diff:
diff --git a/sapi/cli/tests/php_cli_server.inc 
b/sapi/cli/tests/php_cli_server.inc
index 3479cd0..40c5361 100644
--- a/sapi/cli/tests/php_cli_server.inc
+++ b/sapi/cli/tests/php_cli_server.inc
@@ -38,7 +38,7 @@ function php_cli_server_start($code = 'echo "Hello world";', 
$no_router = FALSE)
        // note: even when server prints 'Listening on localhost:8964...Press 
Ctrl-C to quit.'
        //       it might not be listening yet...need to wait until fsockopen() 
call returns
     $i = 0;
-    while (($i++ < 5) && !($fp = @fsockopen(PHP_CLI_SERVER_HOSTNAME, 
PHP_CLI_SERVER_PORT))) {
+    while (($i++ < 30) && !($fp = @fsockopen(PHP_CLI_SERVER_HOSTNAME, 
PHP_CLI_SERVER_PORT))) {
         usleep(10000);
     }


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to