From: Hannes Magnusson Date: Sun, 20 Jan 2008 14:10:16 +0000 (+0000) Subject: Fixed bug#43875 (Two error messages returned for $new and $flag argument in mysql_con... X-Git-Tag: RELEASE_2_0_0a1~834 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfebf08378801d0dde7f9a30f1fea29e542d9fad;p=php Fixed bug#43875 (Two error messages returned for $new and $flag argument in mysql_connect()) --- diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 6bc4e1abc2..3dcdb8f71e 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -646,7 +646,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s&s&s&ll", &host_and_port, &host_len, UG(utf8_conv), &user, &user_len, UG(utf8_conv), &passwd, &passwd_len, UG(utf8_conv), &new_link, &client_flags)==FAILURE) { - WRONG_PARAM_COUNT; + return; } /* mysql_pconnect does not support new_link parameter */