Re: Help with custom session handler
| From: | Sascha Schumann | Date: | Sun, 08 Jul 2001 23:15:19 +0000 |
| Subject: | Re: Help with custom session handler | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56830@lists.php.net to get a copy of this message | ||
> There is a serious bug in PHP that seems to lead to inconsistent handling
> of memory allocation that affects code that uses functions like strtok from
> inside session handler functions.
That is a *very* inaccurate description.
It affects only session handler functions which are called
during the request shutdown (write, close). It does not
affect the other four handlers.
Second, it is not a general problem with memory allocations.
Strtok just assumed that it would not be called after request
shutdown. The attached patch should fix that.
- Sascha Experience IRCG
http://schumann.cx/ http://schumann.cx/ircg