PHP 4.0 Bug #7757 Updated: mysql_pconnect does not reuse old connection
| From: | ronabop@php.net | Date: | Sun, 12 Nov 2000 02:52:21 +0000 |
| Subject: | PHP 4.0 Bug #7757 Updated: mysql_pconnect does not reuse old connection | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37795@lists.php.net to get a copy of this message | ||
ID: 7757
Updated by: ronabop
Reported By: mjrider@enschede.com
Status: Closed
Bug Type: *General Issues
Assigned To:
Comments:
How are you testing that it is unused within the same PHP script? If you look at the manual pages on
persistant connections, you will discover that a persistant database connection is not related to:
Subsequent page loads by the same user
Subsequent page loads by a different user
See:
http://www.php.net/manual/features.persistent-connections.php
It does not allow a user to re-use the same connection, or
for PHP to always use the same connection.
In short, this feature only has value when using many database connections within the same PHP page,
or when your
PHP connections are all making different connections to the database, in a manner unrelated to the
data or user, and need an additional speed boost.
If you find that they are not using the same connection within one html page, or your mysql
connections are not being held open for another reason, please re-open this bug and add a sample
script, or explain your methodology.
Previous Comments:
---------------------------------------------------------------------------
[2000-11-11 06:59:11] mjrider@enschede.com
The bug only apears to affect mysql_pconnect() when i
supply a host, user and pass combo
---------------------------------------------------------------------------
[2000-11-11 06:40:41] mjrider@enschede.com
./configure' '--with-apxs=/usr/sbin/apxs'
'--with-config-file-path=/etc/php' '--with-xml'
'--with-mysql=/usr/local' '--with-zlib' '--enable-track-vars'
'--enable-inline-optimization' '--with-gd' '--with-jpeg-dir=/usr/lib'
phpinfo() can be called from:
http://murphy.ict.hen.nl/phpinfo.php
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7757