PHP 4.0 Bug #9564: wrong increment nrdels in PS_GC_FUNC(mm)
| From: | eiji at papanui dot ddt dot or dot jp | Date: | Mon, 05 Mar 2001 16:25:15 +0000 |
| Subject: | PHP 4.0 Bug #9564: wrong increment nrdels in PS_GC_FUNC(mm) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47981@lists.php.net to get a copy of this message | ||
From: eiji@papanui.ddt.or.jp
Operating system: Any
PHP version: 4.0 Latest CVS (05/03/2001)
PHP Bug Type: *Session related
Bug description: wrong increment nrdels in PS_GC_FUNC(mm)
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 Bug report at: http://bugs.php.net/?id=9564&edit=1