diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2003-05-30 14:08:14 +0000 | 
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2003-05-30 14:08:14 +0000 | 
| commit | 209bba391b6887fdc23f314807f9ee5978d3c752 (patch) | |
| tree | fa4d30abc6a629a72a4520fcb5ad2f89472df2ef | |
| parent | a51ab0fed0a95629a02332abeb5c4846aaaeb86d (diff) | |
| download | php-git-209bba391b6887fdc23f314807f9ee5978d3c752.tar.gz | |
Fixed bug #23888 (Missing input validation for flags parameter)
| -rw-r--r-- | ext/mysql/php_mysql.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 19b5fbe89c..95ef068e30 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -525,6 +525,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)  						}  						convert_to_string_ex(z_user);  						convert_to_string_ex(z_passwd); +						convert_to_boolean_ex(z_new_link);  						user = Z_STRVAL_PP(z_user);  						passwd = Z_STRVAL_PP(z_passwd);  						new_link = Z_BVAL_PP(z_new_link); @@ -535,6 +536,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)  						}  						convert_to_string_ex(z_user);  						convert_to_string_ex(z_passwd); +						convert_to_long_ex(z_client_flags);  						user = Z_STRVAL_PP(z_user);  						passwd = Z_STRVAL_PP(z_passwd);  						client_flags = Z_LVAL_PP(z_client_flags); @@ -547,6 +549,8 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)  					}  					convert_to_string_ex(z_user);  					convert_to_string_ex(z_passwd); +					convert_to_boolean_ex(z_new_link); +					convert_to_long_ex(z_client_flags);  					user = Z_STRVAL_PP(z_user);  					passwd = Z_STRVAL_PP(z_passwd);  					new_link = Z_BVAL_PP(z_new_link);  | 
