|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31163 exit status 128 on mysqli_connect()
Submitted: 2004-12-17 23:47 UTC Modified: 2005-01-31 22:34 UTC
From: marco-glatz at web dot de Assigned:
Status: No Feedback Package: MySQLi related
PHP Version: 5.0.2 OS: WinXP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: marco-glatz at web dot de
New email:
PHP Version: OS:


 [2004-12-17 23:47 UTC] marco-glatz at web dot de
Apache: 2.0.52
PHP: 5.0.2
MySQL: 4.1.17

if i try mysql_connect() and the mysql-server is not running my browser (firefox) says "document contains no data"

in my apache-log i found following:

child process exited with status 128

the same thing happes if i use an undefined constant

Reproduce code:

// server not running
$link = mysqli_connect('localhost', 'username', 'password');

// server running but undefined constant
$link = mysql_connect(MYSQL_HOST, 'username', Password');

Expected result:
i should be able to fetch the connection error with something like this:

if(!$link) {
    printf("Connect failed: %s\n", mysqli_connect_error());

or in the second case php should complain about an undefined constant


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-17 23:49 UTC] marco-glatz at web dot de
ups, typo-error: mysql_connect() should be mysqli_connect() of course
 [2005-01-10 15:04 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-01-31 22:34 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Dec 11 14:01:29 2023 UTC