php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3518 mysql_connect crashes
Submitted: 2000-02-17 15:22 UTC Modified: 2000-07-22 19:55 UTC
From: yannis at pathfinder dot gr Assigned:
Status: Closed Package: MySQL related
PHP Version: 3.0.14 OS: Linux 2.2.14
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yannis at pathfinder dot gr
New email:
PHP Version: OS:

 

 [2000-02-17 15:22 UTC] yannis at pathfinder dot gr
Hello,
I have a php script in which mysql_connect seems to crash.
By saying 'crash' I mean that the execution of the script
is stopped while executing mysql_connect, leaving no chance to catch any exception (using 'or die()..' for example).
mysql_connect does not return at all.
the same mysql_connect statement has been used many many
times in many many scripts, only in this specific one
I experience the problem.
The other strange thing in this case is that if I press
the "reload" button of the browser, there is a (small)
possibility that the bug will not occure (!?)
I can say that in most times I load the page, I get
mysql_connect crashed, but I believe that which of the
two will happen is random.
I was using php4.0b3. I tried php3.0.14 (I compiled php and apache) but nothing changed.
I have check the 'bad' script again and again and again
but I can't find something that makes it different from
all the others (which work fine!).
I have not logical explanation.. if someone has, please
let me know...

--Yannis Tsakiris
yannis@pathfinder.gr


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-22 19:42 UTC] mrobinso at cvs dot php dot net
Please upgrade to a newer version of php, and reopen if
the problem persists. If so, please include versions
of php/mysql in use, the configure line for php, and the
shortest possible snippet of code that reproduces the
problem.
 [2000-07-22 19:55 UTC] eschmid at cvs dot php dot net
Mike forgot to close
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 23:00:01 2026 UTC