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

From: Date: Wed, 19 Oct 2011 22:48:51 +0000
Subject: Bug #60097 [Opn]: token_get_all fails to lex nested heredoc
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-164450@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: felipe@php.net Reported by: nikic@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] 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

« previous php.bugs (#164450) next »