php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44132 mysql_connect hangs
Submitted: 2008-02-15 15:49 UTC Modified: 2008-02-15 16:09 UTC
From: martin-israel at gmx dot de Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.2CVS-2008-02-15 (CVS) OS: Linux 2.6.23
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: martin-israel at gmx dot de
New email:
PHP Version: OS:

 

 [2008-02-15 15:49 UTC] martin-israel at gmx dot de
Description:
------------
Php hangs when the new_link parameter of the function mysql_connect is set to FALSE.
Used for example by phpMyAdmin.
 
Sorry I've just tested it with PHP Version 5.2.5_p20080206 
(The current latest Gentoo-Version)  


Reproduce code:
---------------
<?php
$link = mysql_connect('localhost', 'user', 'password', FALSE);
if (!$link) {
    die('no connection possible: ' . mysql_error());
}
echo 'Connected!';
mysql_close($link);
?>


Expected result:
----------------
Connected!


Actual result:
--------------
nothing, because the Server hangs.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-15 16:09 UTC] felipe@php.net
This already was reported and fixed:
See Bug#44094

Thanks.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Dec 12 06:00:01 2025 UTC