summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-05-30 14:09:21 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-05-30 14:09:21 +0000
commitf7f36b4f3785c35dc842212c4eee71e6aa7b9922 (patch)
tree45bc5cd64fb83da149ad4460cee7a889604f4264 /ext/mysql/php_mysql.c
parent05e3f11ac5eefc92986f0fb235ff5312a8b1485d (diff)
downloadphp-git-f7f36b4f3785c35dc842212c4eee71e6aa7b9922.tar.gz
MFH
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index 14ba53f6c1..1aa6990d16 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);