diff options
author | Hannes Magnusson <bjori@php.net> | 2008-01-20 14:10:44 +0000 |
---|---|---|
committer | Hannes Magnusson <bjori@php.net> | 2008-01-20 14:10:44 +0000 |
commit | 369bf690c407a403f13c0dc9f0c439eaac4de845 (patch) | |
tree | c0601d23ff6f34bf0cdd93869c23f1eed0715395 /ext/mysql/php_mysql.c | |
parent | 5c5d5dd0f6b4d9f0976babcb67edf5cd90b07b1a (diff) | |
download | php-git-369bf690c407a403f13c0dc9f0c439eaac4de845.tar.gz |
MFH: Fixed bug#43875 (Two error messages returned for $new and $flag argument in mysql_connect())
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r-- | ext/mysql/php_mysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index c00ec7c5b9..ad4e8ec624 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, &user, &user_len, &passwd, &passwd_len, &new_link, &client_flags)==FAILURE) { - WRONG_PARAM_COUNT; + return; } if (!host_and_port) { |