From:             marco-glatz at web dot de
Operating system: WinXP
PHP version:      5.0.2
PHP Bug Type:     Apache2 related
Bug description:  exit status 128 on mysqli_connect()

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 bug report at http://bugs.php.net/?id=31163&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31163&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31163&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31163&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31163&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31163&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31163&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31163&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31163&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31163&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31163&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31163&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31163&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31163&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31163&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31163&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31163&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31163&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31163&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31163&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31163&r=mysqlcfg

Reply via email to