#34550 [Fbk->Opn]: database connections "dissappears" at custom session handlers

2005-09-20 Thread rudy dot metzger at pareto dot nl
 ID:   34550
 User updated by:  rudy dot metzger at pareto dot nl
 Reported By:  rudy dot metzger at pareto dot nl
-Status:   Feedback
+Status:   Open
 Bug Type: Session related
 Operating System: Redhat ES 3
 PHP Version:  5.0.5
 New Comment:

Same problem with the snapshot version, see output below:
-
The link identifier after connect. it is valid
object(mysqli)#3 (0) {
}
Ping of the DB. Returns true, we can ping it
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!
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))


Previous Comments:


[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


#34550 [Fbk->Opn]: database connections "dissappears" at custom session handlers

2005-09-19 Thread rudy dot metzger at pareto dot nl
 ID:   34550
 User updated by:  rudy dot metzger at pareto dot nl
 Reported By:  rudy dot metzger at pareto dot nl
-Status:   Feedback
+Status:   Open
 Bug Type: Session related
 Operating System: Redhat ES 3
 PHP Version:  5.0.5
 New Comment:

fixed, was still in the process of setting it up. sorry


Previous Comments:


[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