|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60097 token_get_all fails to lex nested heredoc
Submitted: 2011-10-19 17:06 UTC Modified: 2012-08-20 04:47 UTC
From: Assigned: stas
Status: Closed Package: *General Issues
PHP Version: 5.4.0beta1 OS:
Private report: No CVE-ID:
 [2011-10-19 17:06 UTC]

Doesn't recognize DOC; as the heredoc end.
Looks like some of the heredoc LEXING code was put in the PARSER.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-19 22:48 UTC]
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 ===
 [2012-08-20 04:47 UTC]
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

 For Windows:
Thank you for the report, and for helping us make PHP better.

fixed by 4cf90e06c9834a52195384da760503ea055c726d in master.
 [2012-08-20 04:47 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: stas
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Thu Nov 26 01:01:34 2015 UTC