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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 13:01:33 2024 UTC