Home » HTTP » HTTP_Session » Bug #6408
mysqli problem
Details
| Submitted | 2006-01-03 21:12 UTC |
|---|---|
| From | ralf dot praschak at gmx dot net |
| Assigned | troehr |
| Status | Closed |
| Package | HTTP_Session |
| PHP Version | 5.1.1 |
| OS | Linux and Win32 |
| Roadmaps | (Not assigned) |
Comments
[2006-01-03 21:12 UTC] ralf dot praschak at gmx dot net
Description:
------------
hello!
i am using this PEAR package on different projects. now i had to upgrade my dev machine (win32 / xp sp2) and a dev server (linux / fc2) to PHP 5.1.1
on both setups i get an "DB Error: no database selected" at the end of the php script when using a dsn with mysqli and a broken session.
switching to mysql works normally.
to verify this isn't a error in my script i used the "Container_Example.php" with the same result!
regards
ralf praschak
Test script:
---------------
Container_Example.php from the package itself
Expected result:
----------------
1
refresh
Actual result:
--------------
0
refresh
DB Error: no database selected
[2006-01-26 19:42 UTC] ann-dupont at pandora dot be
Hi,
I'm getting the same errors for HTTP_Session2 on the latest versions of PHP5, MySQL5 and Apache2.
Sincerely,
Ann
[2006-01-26 21:09 UTC] ann-dupont at pandora dot be
Hi,
When I use the HTTP_Session class with cookies, there are no errors.
In trying to find a solution, I get also errors when using other scripts to save session data in MySQL.
I believe it has to do something with the function 'session_start()'...?
Ann Dupont
[2006-02-15 12:20 UTC] ag at people dot pl
Hello.
I had the same problem. I found it was caused of '$db->disconnect()' at the end of my scripts. I removed this line and everything works OK.