php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21498 mysql_pconnect trouble
Submitted: 2003-01-07 13:47 UTC Modified: 2003-01-08 05:15 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: admin at cpan dot cz Assigned: georg (profile)
Status: Closed Package: MySQL related
PHP Version: 4.3.0 OS: Linux
Private report: No CVE-ID: None
 [2003-01-07 13:47 UTC] admin at cpan dot cz
I have php 4.3.0, compiled with external mysql client 3.23.54. There is a problem with mysql_pconnect(). Sometimes it's impossible to connect ( Lost connection to mysql server ). If mysql_connect is used, there isn't problem any more. There wasn't problem in php 4.2.3 with the same mysql client.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-07 21:03 UTC] admin at initcorp dot co dot uk
Yeah I am getting the same problem :(

This is what error I get:
Warning: mysql_pconnect() [function.mysql-pconnect]: Link to server lost, unable to reconnect 

And I also get it to work now and then.

As far as I know these are the servers info:

OS is Redhat Linux Im not too sure on the version.
mySQL is version 3.23.54
PHP is version 4.3.0
Apache is version 1.3.26

It was all working fine until version 4.3.0 was installed :(

Thanks in advance
Paul
 [2003-01-08 04:25 UTC] georg@php.net
Verified, assigned to myself.
 [2003-01-08 04:28 UTC] derick@php.net
You didn't assign it :-)
 [2003-01-08 05:15 UTC] georg@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2003-06-02 06:37 UTC] timothy dot arnold at becta dot org dot uk
I have PHP 4.3.1 running on Solaris 8 - same error. When I 
switch to non-persistent connections it works fine. About 
to test PHP 4.3.2
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC