Bug in 5.0.5-dev and 5.1-beta
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Bug in 5.0.5-dev and 5.1-beta

From: Tony Marston <tony@NOSPAM.demon.co.uk>
Date: Sat Jul 16 2005 - 10:21:57 CEST

I have just found a bug in 5.0.5-dev and 5.1-beta which occurs under the
following circumstances:
- you are using a custom session handler to write all session data to the
database.
- you use a shared resource for the database connection (i.e. after
connecting to the database to read the session data you use the same
connection to write to the database).

The problem appears to be that the order of events when a script terminates
has been altered so that it releases all resources before writing out the
session data. This means that the database connection resource is no longer
available which results in a "couldn't fetch mysqli" error.

I have found that putting an explicit session_write_close() at the end of my
script cures the problem.

Check it out at http://bugs.php.net/bug.php?id=33635

-- 
Tony Marston
http://www.tonymarston.net
Received on Mon Oct 17 21:08:29 2005