1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 19:52:20 +02:00

MFB: Fixed Bug #44094 (SEGFAULT when using mysql_connect())

This commit is contained in:
Felipe Pena
2008-02-12 10:15:16 +00:00
parent 87a8f72f49
commit de211f67f3

View File

@@ -643,7 +643,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
user = MySG(default_user);
passwd = MySG(default_password);
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s&s&s&ll", &host_and_port, &host_len, UG(utf8_conv),
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s&s&s&bl", &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) {
return;