Edit report at https://bugs.php.net/bug.php?id=60097&edit=1

 ID:                 60097
 Updated by:         s...@php.net
 Reported by:        ni...@php.net
 Summary:            token_get_all fails to lex nested heredoc
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            *General Issues
 PHP Version:        5.4.0beta1
-Assigned To:        
+Assigned To:        stas
 Block user comment: N
 Private report:     N

 New Comment:

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
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

fixed by 4cf90e06c9834a52195384da760503ea055c726d in master.


Previous Comments:
------------------------------------------------------------------------
[2011-10-19 22:48:51] fel...@php.net

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 ===

------------------------------------------------------------------------
[2011-10-19 17:06:58] ni...@php.net

Description:
------------
token_get_all('<?php
<<<DOC
{$s(<<<ppp
ppp
)}
DOC;
');

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



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60097&edit=1

Reply via email to