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 */

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to