ID: 34550 Updated by: [EMAIL PROTECTED] Reported By: rudy dot metzger at pareto dot nl -Status: Open +Status: Bogus Bug Type: Session related Operating System: Redhat ES 3 PHP Version: 5.0.5 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2005-09-20 10:47:45] rudy dot metzger at pareto dot nl 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)) ------------------------------------------------------------------------ [2005-09-19 17:39:13] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip Works perfectly fine here. ------------------------------------------------------------------------ [2005-09-19 17:20:58] rudy dot metzger at pareto dot nl fixed, was still in the process of setting it up. sorry ------------------------------------------------------------------------ [2005-09-19 17:09:37] [EMAIL PROTECTED] 403 Forbidden You don't have permission to access /phpbug/ on this server. ------------------------------------------------------------------------ [2005-09-19 17:05:42] 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). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34550&edit=1