cvs: php4 /ext/session mod_mm.c

From: Date: Fri, 29 Sep 2000 21:44:45 +0000
Subject: cvs: php4 /ext/session mod_mm.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1881@lists.php.net to get a copy of this message
sas Fri Sep 29 14:44:45 2000 EDT Modified files: /php4/ext/session mod_mm.c Log: Return SUCCESS from write handler, if vallen is 0. Submitted by: tcarroll@chc-chimes.com PR: #6958 Index: php4/ext/session/mod_mm.c diff -u php4/ext/session/mod_mm.c:1.9 php4/ext/session/mod_mm.c:1.10 --- php4/ext/session/mod_mm.c:1.9 Mon Jul 10 03:09:14 2000 +++ php4/ext/session/mod_mm.c Fri Sep 29 14:44:45 2000 @@ -117,7 +117,7 @@ sd->next->prev = sd; sd->prev = NULL; - ps_mm_debug("inserting %s(%x) into %d\n", key, sd, h); + ps_mm_debug("inserting %s(%p) into %d\n", key, sd, h); data->hash[h] = sd; @@ -162,7 +162,7 @@ ps_mm_debug("optimizing\n"); } - ps_mm_debug(stderr, "lookup(%s): ret=%x,h=%d\n", key, ret, h); + ps_mm_debug(stderr, "lookup(%s): ret=%p,h=%d\n", key, ret, h); return ret; } @@ -213,7 +213,7 @@ PS_OPEN_FUNC(mm) { - ps_mm_debug("open: ps_mm_instance=%x\n", ps_mm_instance); + ps_mm_debug("open: ps_mm_instance=%p\n", ps_mm_instance); if (!ps_mm_instance) return FAILURE; @@ -256,6 +256,8 @@ PS_MM_DATA; ps_sd *sd; + if (vallen == 0) return SUCCESS; + mm_lock(data->mm, MM_LOCK_RW); sd = ps_sd_lookup(data, key, 1);

« previous php.cvs (#1881) next »