#31163 [Fbk->NoF]: exit status 128 on mysqli_connect()
ID: 31163
Updated by: sniper@php.net
Reported By: marco-glatz at web dot de
-Status: Feedback
+Status: No Feedback
Bug Type: MySQLi related
Operating System: WinXP
PHP Version: 5.0.2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-01-10 15:04:11] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
------------------------------------------------------------------------
[2004-12-17 23:49:24] marco-glatz at web dot de
ups, typo-error: mysql_connect() should be mysqli_connect() of course
------------------------------------------------------------------------
[2004-12-17 23:47:33] marco-glatz at web dot de
Description:
------------
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:
---------------
mysqli_report(MYSQLI_REPORT_ERROR);
// 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());
exit();
}
or in the second case php should complain about an undefined constant
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31163&edit=1
Thread (4 messages)