From: [EMAIL PROTECTED]
Operating system: ALL
PHP version: 4.2.3
PHP Bug Type: *General Issues
Bug description: Memory leak in shutdown_scanner
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 bug report at http://bugs.php.net/?id=20909&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20909&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20909&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20909&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20909&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20909&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20909&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20909&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20909&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20909&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20909&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20909&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20909&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20909&r=isapi