go to bug id or search bugs for
Doesn't recognize DOC; as the heredoc end.
Looks like some of the heredoc LEXING code was put in the PARSER.
Add a Patch
Add a Pull Request
It also causes a memory leak.
[Wed Oct 19 20:41:43 2011] Script: '../bug.php'
Zend/zend_language_scanner.l(2113) : Freeing 0xB73DFBA4 (4 bytes), script=../bug.php
=== Total 1 memory leaks detected ===
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.
fixed by 4cf90e06c9834a52195384da760503ea055c726d in master.