Connecting Tech Pros Worldwide Help | Site Map

Bug in 5.0.5-dev and 5.1-beta

  #1  
Old July 17th, 2005, 03:15 PM
Tony Marston
Guest
 
Posts: n/a
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



Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
bug in msxml? confirmation requested. Matthias Truxa answers 19 November 18th, 2006 01:35 PM
Nasty bug in the C# compiler, it truncates values on the stack Jerry answers 19 November 17th, 2005 04:06 AM
Bug in gcc4 initialisers suspected Marcel van Kervinck answers 34 November 14th, 2005 11:47 PM
<HR> Style Bug in IE6 Mark Moore answers 49 July 21st, 2005 12:12 AM
<HR> Style Bug in IE6 Mark Moore answers 34 July 20th, 2005 08:20 PM