Skip to content

Commit 945ccfa

Browse files
committed
- Remove superfluous E_WARNING if mysql_connect() fails; there's already
an E_WARNING a few lines above.
1 parent 6b6fb53 commit 945ccfa

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/mysql/php_mysql.c

-1
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,6 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
761761
#if defined(HAVE_MYSQL_ERRNO)
762762
MySG(connect_errno)=mysql_errno(&mysql->conn);
763763
#endif
764-
php_error_docref(NULL TSRMLS_CC, E_WARNING, "MySQL Connection Failed: %s\n", mysql_error(&mysql->conn));
765764
efree(hashed_details);
766765
efree(mysql);
767766
MYSQL_DO_CONNECT_RETURN_FALSE();

0 commit comments

Comments
 (0)