]> granicus.if.org Git - php/commitdiff
MFH: Test for loss of backslash at end of heredoc; For bug #44830 (Very minor issue...
authorMatt Wilmas <mattwil@php.net>
Fri, 9 May 2008 11:06:45 +0000 (11:06 +0000)
committerMatt Wilmas <mattwil@php.net>
Fri, 9 May 2008 11:06:45 +0000 (11:06 +0000)
Zend/tests/bug44830.phpt [new file with mode: 0644]

diff --git a/Zend/tests/bug44830.phpt b/Zend/tests/bug44830.phpt
new file mode 100644 (file)
index 0000000..21a35ff
--- /dev/null
@@ -0,0 +1,14 @@
+--TEST--
+Bug #44830 (Very minor issue with backslash in heredoc)
+--FILE--
+<?php
+
+$backslash = <<<EOT
+\
+EOT;
+
+var_dump($backslash);
+
+?>
+--EXPECT--
+string(1) "\"