Commit: 30bd2494a29c45faf7ddac37601fa2588856c7fe
Author: Xinchen Hui(larue...@gmail.com)         Tue, 20 Mar 2012 15:26:58 +0800
Committer: Xinchen Hui(larue...@gmail.com)      Tue, 20 Mar 2012 15:26:58 +0800
Parents: 44d948996fd51249a4451189ec8e8239b9b20034

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

Log:
Use newdoc instead of escape char

Changed paths:
  M  sapi/cli/tests/php_cli_server_016.phpt
  M  sapi/cli/tests/php_cli_server_017.phpt


Diff:
30bd2494a29c45faf7ddac37601fa2588856c7fe
diff --git a/sapi/cli/tests/php_cli_server_016.phpt 
b/sapi/cli/tests/php_cli_server_016.phpt
index 9732924..3fd065a 100644
--- a/sapi/cli/tests/php_cli_server_016.phpt
+++ b/sapi/cli/tests/php_cli_server_016.phpt
@@ -10,8 +10,8 @@ include "skipif.inc";
 --FILE--
 <?php
 include "php_cli_server.inc";
-php_cli_server_start(<<<PHP
-if (preg_match('/\.(?:png|jpg|jpeg|gif)$/', \$_SERVER["REQUEST_URI"]))
+php_cli_server_start(<<<'PHP'
+if (preg_match('/\.(?:png|jpg|jpeg|gif)$/', $_SERVER["REQUEST_URI"]))
         return false; // serve the requested resource as-is.
 else {
         echo "here";
diff --git a/sapi/cli/tests/php_cli_server_017.phpt 
b/sapi/cli/tests/php_cli_server_017.phpt
index 778e5f2..6c414a1 100644
--- a/sapi/cli/tests/php_cli_server_017.phpt
+++ b/sapi/cli/tests/php_cli_server_017.phpt
@@ -7,8 +7,8 @@ include "skipif.inc";
 --FILE--
 <?php
 include "php_cli_server.inc";
-php_cli_server_start(<<<PHP
-var_dump(\$_SERVER['SCRIPT_FILENAME']);
+php_cli_server_start(<<<'PHP'
+var_dump($_SERVER['SCRIPT_FILENAME']);
 PHP
 );


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

Reply via email to