From: Xinchen Hui Date: Tue, 15 Nov 2011 03:19:54 +0000 (+0000) Subject: MFH, fix test X-Git-Tag: php-5.4.0RC2~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f42ea8557cb8e71bdb4979fbadcd8e7076985ae5;p=php MFH, fix test --- diff --git a/sapi/cli/tests/php_cli_server.inc b/sapi/cli/tests/php_cli_server.inc index 26abe5492a..ab754eb408 100644 --- a/sapi/cli/tests/php_cli_server.inc +++ b/sapi/cli/tests/php_cli_server.inc @@ -5,7 +5,9 @@ function php_cli_server_start($code = 'echo "Hello world";', $no_router = FALSE) $php_executable = getenv('TEST_PHP_EXECUTABLE'); $doc_root = __DIR__; $router = "index.php"; - file_put_contents($doc_root . '/' . $router, ''); + if ($code) { + file_put_contents($doc_root . '/' . $router, ''); + } $descriptorspec = array( 0 => STDIN,