|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3852 mysql_pconnect sometimes works when it isn't supposed to.
Submitted: 2000-03-16 17:30 UTC Modified: 2005-03-31 16:13 UTC
From: truth at ichaos dot com Assigned: georg (profile)
Status: Wont fix Package: MySQL related
PHP Version: 3.0.15 OS: Linux 2.2.13
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2000-03-16 17:30 UTC] truth at ichaos dot com
I am using MySQL version 3.22.30.

I have a PHP3 program that check the return of a mysql_pconnect() command to see if it successfully connected as a user that does not exist. Half of the time, it returns false as it should and reports a warning that the user could not connect. The other half it returns true, or not false, and gives no warnings, even though it really didn't connect at all.

Changing my code to use mysql_connect() instead works.

I've tried under older versions of both PHP3 (3.0.12) and MySQL (3.22.27) and it  works just fine.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-31 16:13 UTC] php-bugs at lists dot php dot net
We are sorry, but we do not support PHP 3 related problems anymore.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Dec 06 08:01:31 2023 UTC