PHP 4.0 Bug #5571 Updated: memory leaks/huge reported virtual size
| From: | zeev@php.net | Date: | Fri, 03 Nov 2000 02:48:50 +0000 |
| Subject: | PHP 4.0 Bug #5571 Updated: memory leaks/huge reported virtual size | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-36897@lists.php.net to get a copy of this message | ||
ID: 5571
Updated by: zeev
Reported By: mookid@sigent.ru
Status: Closed
Bug Type: *General Issues
Assigned To:
Comments:
Applied the patch as suggested. Thanks!
Previous Comments:
---------------------------------------------------------------------------
[2000-10-18 13:28:57] mookid@sigent.ru
Yupee! I've spent some time at the debugger,
and here it is: the leak is in the configuration-scanner.
There plainly was no buffer deallocation in the scanner code, and the Apache module re-reading
php.ini get a leak
by allocating the buffer again.
Here's the patch, that simple:
--- main/configuration-scanner.l Mon Jun 26 22:15:49 2000
+++ main/configuration-scanner.l.new Wed Oct 18 17:57:28 2000
@@ -180,3 +180,8 @@
php_error(E_NOTICE,"Unexpected character on line %d: '%s' (ASCII
%d)n",yylineno,yytext,yytext[0]);
#endif
}
+
+<<EOF>> {
+ yy_delete_buffer(YY_CURRENT_BUFFER);
+ yyterminate();
+}
---------------------------------------------------------------------------
[2000-10-02 22:30:47] sniper@php.net
No feedback. Reopen this bug report if problem still exists.
--Jani
---------------------------------------------------------------------------
[2000-09-02 22:26:35] sniper@php.net
Upgrade to php4.0.2. And try doing stop and start instead of restart.
--Jani
---------------------------------------------------------------------------
[2000-09-02 19:43:57] mookid@sigent.ru
Of course, I mean 'apachectl restart'.
---------------------------------------------------------------------------
[2000-08-23 09:40:27] sniper@php.net
Exactly what do you mean with 'restarts' ??
Do you restart apache with:
apachectl stop
apachectl start
??
Or
apachectl restart
??
--Jani
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
Full Bug description available at: http://bugs.php.net/?id=5571