ID: 20909
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: *General Issues
Operating System: ALL
PHP Version: 4.2.3
New Comment:
the file to patch is: Zend/zend_language_scanner.l
Previous Comments:
------------------------------------------------------------------------
[2002-12-09 09:32:25] [EMAIL PROTECTED]
There is a memory leak in the scanner stack:
A patch like this should work:
void shutdown_scanner(TSRMLS_D)
{
+ if (SCNG(yy_start_stack)) {
+ yy_flex_free(SCNG(yy_start_stack));
+ SCNG(yy_start_stack) = 0;
+ }
if (CG(heredoc)) {
efree(CG(heredoc));
CG(heredoc_len)=0;
}
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20909&edit=1