[Phplib-users] ct_shm.inc patch idea
Brought to you by:
nhruby,
richardarcher
|
From: John D. <jpd...@cc...> - 2002-03-20 16:01:40
|
I wonder whether the following patch (or something like it) would be an improvement:
--- ct_shm.inc Wed Jul 12 14:22:33 2000
+++ ct_shm.inc.new Wed Mar 20 08:50:54 2002
@@ -44,6 +44,8 @@
function ac_newid($str, $name) {
for($i = 1; $i <= $this->max_sessions &&
(@shm_get_var($this->shmid, $i) != false); $i++);
+ if($i > $this->max_sessions)
+ $this->ac_halt("no sessions available");
$id = $i."_".$str;
$this->ac_store($id, $name, "");
return $id;
My MUA broke the whitespace, sorry.
John
|