[git] commit php-src.git: sapi/cli/tests/php_cli_server.i nc
| From: | Xinchen Hui | Date: | Tue, 20 Mar 2012 07:53:37 +0000 |
| Subject: | [git] commit php-src.git: sapi/cli/tests/php_cli_server.i nc | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-68020@lists.php.net to get a copy of this message | ||
Commit: e1931dd1ad35d46e1858a6571e16ed592c43f338
Author: Xinchen Hui(laruence@php.net) Tue, 20 Mar 2012 15:41:43 +0800
Committer: Xinchen Hui(laruence@php.net) Tue, 20 Mar 2012 15:41:43 +0800
Parents: 30bd2494a29c45faf7ddac37601fa2588856c7fe
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e1931dd1ad35d46e1858a6571e16ed592c43f338
Log:
Minor change, test using php mail address as account
Changed paths:
M sapi/cli/tests/php_cli_server.inc
Diff:
e1931dd1ad35d46e1858a6571e16ed592c43f338
diff --git a/sapi/cli/tests/php_cli_server.inc b/sapi/cli/tests/php_cli_server.inc
index 60ae325..44ee76e 100644
--- a/sapi/cli/tests/php_cli_server.inc
+++ b/sapi/cli/tests/php_cli_server.inc
@@ -5,6 +5,7 @@ function php_cli_server_start($code = 'echo "Hello world";',
$no_router = FALSE)
$php_executable = getenv('TEST_PHP_EXECUTABLE');
$doc_root = __DIR__;
$router = "index.php";
+
if ($code) {
file_put_contents($doc_root . '/' . $router, '<?php ' . $code . '
?>');
}