mirror of
https://github.com/php/php-src.git
synced 2024-12-01 05:43:38 +08:00
Use newdoc instead of escape char
This commit is contained in:
parent
44d948996f
commit
30bd2494a2
@ -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";
|
||||
|
@ -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
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user