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

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

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[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