cvs: php-src /ext/mysql php_mysql.c
| From: | Hannes Magnusson | Date: | Sun, 20 Jan 2008 14:10:16 +0000 |
| Subject: | cvs: php-src /ext/mysql php_mysql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-47920@lists.php.net to get a copy of this message | ||
bjori Sun Jan 20 14:10:16 2008 UTC
Modified files:
/php-src/ext/mysql php_mysql.c
Log:
Fixed bug#43875 (Two error messages returned for $new and $flag argument in mysql_connect())
http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/php_mysql.c?r1=1.248&r2=1.249&diff_format=u
Index: php-src/ext/mysql/php_mysql.c
diff -u php-src/ext/mysql/php_mysql.c:1.248 php-src/ext/mysql/php_mysql.c:1.249
--- php-src/ext/mysql/php_mysql.c:1.248 Mon Dec 31 07:12:11 2007
+++ php-src/ext/mysql/php_mysql.c Sun Jan 20 14:10:16 2008
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mysql.c,v 1.248 2007/12/31 07:12:11 sebastian Exp $ */
+/* $Id: php_mysql.c,v 1.249 2008/01/20 14:10:16 bjori Exp $ */
/* TODO:
*
@@ -646,7 +646,7 @@
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 */