|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-17 23:49 UTC] marco-glatz at web dot de
[2005-01-10 15:04 UTC] sniper@php.net
[2005-01-31 22:34 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 13:00:02 2025 UTC |
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