php-src/Zend/tests/nowdoc_016.phpt
2018-10-14 19:45:12 +02:00

42 lines
379 B
PHP

--TEST--
Testing nowdocs with escape sequences
--FILE--
<?php
$test = <<<'TEST'
TEST;
var_dump(strlen($test));
$test = <<<'TEST'
\
TEST;
var_dump(strlen($test));
$test = <<<'TEST'
\0
TEST;
var_dump(strlen($test));
$test = <<<'TEST'
\n
TEST;
var_dump(strlen($test));
$test = <<<'TEST'
\\'
TEST;
var_dump(strlen($test));
?>
--EXPECT--
int(0)
int(1)
int(2)
int(2)
int(3)