|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-09-19 17:05 UTC] rudy dot metzger at pareto dot nl
Description: ------------ When using customer session handlers, the database connection during the write is no longer valid (when using mysqli). Reproduce code: --------------- http://parlnx01.pareto.nl/phpbug Expected result: ---------------- a valid database connection. in above case, a return value of TRUE from the ping. Curios is that ping should return true/false, but acutally we got NULL. Actual result: -------------- a lost database connection, ping returns NULL. it is also impossible to execute queries or issue statements (no DB connection anymore). PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 16:00:01 2025 UTC |
Same problem with the snapshot version, see output below: --------------------------------------------------------- The link identifier after connect. it is valid<br> object(mysqli)#3 (0) { } Ping of the DB. Returns true, we can ping it<br> bool(true) PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/zwizzle/zcm/public/test.php:36) in /var/www/zwizzle/zcm/public/test.php on line 22 PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/zwizzle/zcm/public/test.php:36) in /var/www/zwizzle/zcm/public/test.php on line 22 Writing, now it goes wrong! ping returns NULL, which is undefined!<br> PHP Warning: Couldn't fetch mysqli in /var/www/zwizzle/zcm/public/test.php on line 61 NULL ------------------------------------------------------- The problem is the NULL in the very last line I am using for MySQL MySQL-shared-standard-4.1.14-0.rhel3 MySQL-devel-standard-4.1.14-0.rhel3 and my linux is Linux www1.zwizzle.nl 2.4.21-32.0.1.ELsmp #1 SMP Tue May 17 17:52:23 EDT 2005 i686 i686 i386 GNU/Linux (Redhat ES3) Configured with ./configure --with-apxs2 --with-mysqli=/usr/bin/mysql_config --with-gd --with-zlib --with-openssl --enable-pcntl --with-curl --enable-mbstring I reinstalled php-5.0.4 again, and everything works again (the NULL is then boolean(true))