Use newdoc instead of escape char

This commit is contained in:
Xinchen Hui 2012-03-20 15:26:58 +08:00
parent 44d948996f
commit 30bd2494a2
2 changed files with 4 additions and 4 deletions

View File

@ -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";

View File

@ -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
);