Bug #9564 Updated: wrong increment nrdels in PS_GC_FUNC(mm)

From: Date: Thu, 30 Aug 2001 15:49:03 +0000
Subject: Bug #9564 Updated: wrong increment nrdels in PS_GC_FUNC(mm)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-64726@lists.php.net to get a copy of this message
ID: 9564 User updated by: eiji@papanui.ddt.or.jp Reported By: eiji@papanui.ddt.or.jp Status: Closed Bug Type: *Session related Operating System: Any PHP Version: 4.0 Latest CVS (05/03/2001) New Comment: Thank you for fixed this bug at revision 1.21 (19th July 2001). Previous Comments: ------------------------------------------------------------------------ [2001-03-16 17:39:23] sas@php.net Thanks for your report. The specific code was changed in the past and was not affected by that bug anymore. ------------------------------------------------------------------------ [2001-03-05 11:25:15] eiji@papanui.ddt.or.jp It's wrong increment nrdels in PS_GC_FUNC(mm) '*nrdels++' incremnts nrdels as pointer, but nrdels is allocated on the stack in php_session_start(PSLS_D). This is a patch for a local copy of my repositry, --- mod_mm.c 2001/01/13 10:54:33 1.1.1.2 +++ mod_mm.c 2001/03/05 16:11:46 @@ -333,7 +333,7 @@ ps_mm_debug("looking at %s\n", sd->key); if ((now - sd->ctime) > maxlifetime) { ps_sd_destroy(data, sd); - *nrdels++; + (*nrdels)++; } } ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=9564&edit=1

« previous php.dev (#64726) next »