Bug #60097 [Opn->Csd]: token_get_all fails to lex nested heredoc

From: Date: Mon, 20 Aug 2012 04:47:18 +0000
Subject: Bug #60097 [Opn->Csd]: token_get_all fails to lex nested heredoc
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-172707@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60097&edit=1

 ID:                 60097
 Updated by:         stas@php.net
 Reported by:        nikic@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] felipe@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] nikic@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


Thread (3 messages)

« previous php.bugs (#172707) next »