summaryrefslogtreecommitdiff
path: root/Zend/tests/bug36037.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug36037.phpt')
-rwxr-xr-xZend/tests/bug36037.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/tests/bug36037.phpt b/Zend/tests/bug36037.phpt
new file mode 100755
index 0000000000..3ccebf652d
--- /dev/null
+++ b/Zend/tests/bug36037.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Bug #36037 (heredoc adds extra line number)
+--FILE--
+<?php
+echo __LINE__, "\n";
+$x=<<<XXX
+123
+YYY;
+XXX;
+echo __LINE__, "\n";
+?>
+--EXPECT--
+2
+7