Connecting Tech Pros Worldwide Help | Site Map

Bug in 5.0.5-dev and 5.1-beta

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 02:15 PM
Tony Marston
Guest
 
Posts: n/a
Default Bug in 5.0.5-dev and 5.1-beta

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




 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.