#33635 [Fbk->Opn]: "couldn't fetch mysqli" error when attempting to write session data to db
| From: | tony at marston-home dot demon dot co dot uk | Date: | Mon, 11 Jul 2005 09:59:50 +0000 |
| Subject: | #33635 [Fbk->Opn]: "couldn't fetch mysqli" error when attempting to write session data to db | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81667@lists.php.net to get a copy of this message | ||
ID: 33635
User updated by: tony at marston-home dot demon dot co dot uk
Reported By: tony at marston-home dot demon dot co dot uk
-Status: Feedback
+Status: Open
Bug Type: MySQLi related
Operating System: Windows XP
PHP Version: 5CVS-2005-07-10 (dev)
New Comment:
I have changed the test set as follows:
(a) Everything is in a single file (test.php)
(b) I have removed the PHP 4 code (=& with objects)
(c) I have removed redundant methods.
New test set is available at http://www.tonymarston.net/text.zip
Previous Comments:
------------------------------------------------------------------------
[2005-07-11 09:09:47] sniper@php.net
1. Put everything in single file
2. Remove the PHP4 stuff (in PHP5, you don't need to do =& with
objects, for example)
3. Remove all unused methods
------------------------------------------------------------------------
[2005-07-11 00:12:34] tony at marston-home dot demon dot co dot uk
php_session class is a subclass of std.table class, so i suppose they
could be combined, but it still wouldn't reduce the total code. It is
the interaction between the table class and the mysql class which
appears to be causing the problem.
The point is that the line where it fails is executed without error
several times before the failure occurs. If I remove the custom session
handler the code never fails. It does not fail when reading the session
data, only when writing.
------------------------------------------------------------------------
[2005-07-10 23:59:04] sniper@php.net
"Smallest possible" doesn't mean that you remove everything.
Or does it stop failing when you remove just ONE class?
------------------------------------------------------------------------
[2005-07-10 23:44:45] tony at marston-home dot demon dot co dot uk
It simply does not fail when I remove all those classes. That is the
smallest I can possibly make it, and I have been working on it all
afternoon.
------------------------------------------------------------------------
[2005-07-10 22:23:14] tony2001@php.net
Please, provide a *short* but *complete* reproduce case without all
those numerous classes, includes etc. Thanks.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/33635
--
Edit this bug report at http://bugs.php.net/?id=33635&edit=1