]> granicus.if.org Git - php/commitdiff
Test for loss of backslash at end of heredoc; For bug #44830 (Very minor issue with...
authorMatt Wilmas <mattwil@php.net>
Fri, 9 May 2008 11:05:34 +0000 (11:05 +0000)
committerMatt Wilmas <mattwil@php.net>
Fri, 9 May 2008 11:05:34 +0000 (11:05 +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..58b70ad
--- /dev/null
@@ -0,0 +1,17 @@
+--TEST--
+Bug #44830 (Very minor issue with backslash in heredoc)
+--FILE--
+<?php
+
+$backslash = <<<EOT
+\
+EOT;
+
+var_dump($backslash);
+
+?>
+--EXPECT--
+string(1) "\"
+
+--UEXPECT--
+unicode(1) "\"