summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Fischer <mfischer@php.net>2002-10-05 00:54:31 +0000
committerMarkus Fischer <mfischer@php.net>2002-10-05 00:54:31 +0000
commit945ccfa76a8453ffc8fe4e514ef593c95fe377eb (patch)
tree07c8c1fb73af621870a5c4d7f1e3fc7375542315
parent6b6fb53d8670e27b6610e427df64a1c66e0d0536 (diff)
downloadphp-git-945ccfa76a8453ffc8fe4e514ef593c95fe377eb.tar.gz
- Remove superfluous E_WARNING if mysql_connect() fails; there's already
an E_WARNING a few lines above.
-rw-r--r--ext/mysql/php_mysql.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index 52be05ff99..1dba353719 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -761,7 +761,6 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
#if defined(HAVE_MYSQL_ERRNO)
MySG(connect_errno)=mysql_errno(&mysql->conn);
#endif
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "MySQL Connection Failed: %s\n", mysql_error(&mysql->conn));
efree(hashed_details);
efree(mysql);
MYSQL_DO_CONNECT_RETURN_FALSE();