diff options
| author | Anatol Belski <ab@php.net> | 2014-08-27 15:31:48 +0200 | 
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2014-08-27 20:49:31 +0200 | 
| commit | 3234480827b27ff5d3469a732167afd289632a96 (patch) | |
| tree | 485ed0c4f5d35107a65ab193f3bc7c27806fbfca /ext/mysql/php_mysql.c | |
| parent | ee552b628c2d9f9455ac85d7791b4b4e8e4ddeb2 (diff) | |
| download | php-git-3234480827b27ff5d3469a732167afd289632a96.tar.gz | |
first show to make 's' work with size_t
Diffstat (limited to 'ext/mysql/php_mysql.c')
| -rw-r--r-- | ext/mysql/php_mysql.c | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 8939e9934a..985f1888be 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -725,7 +725,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)  	char *user = NULL, *passwd = NULL;     	char *host_and_port = NULL, *socket = NULL;  	char *tmp = NULL, *host = NULL; -	int user_len = 0, passwd_len = 0, host_len = 0; +	size_t user_len = 0, passwd_len = 0, host_len = 0;  	int port = MYSQL_PORT;  	zend_long client_flags = 0;  	php_mysql_conn *mysql = NULL; @@ -1145,7 +1145,7 @@ PHP_FUNCTION(mysql_close)  PHP_FUNCTION(mysql_select_db)  {  	char *db; -	int db_len; +	size_t db_len;  	php_mysql_conn *mysql;  	zval *mysql_link = NULL; @@ -1404,7 +1404,7 @@ PHP_FUNCTION(mysql_set_charset)  PHP_FUNCTION(mysql_create_db)  {  	char *db; -	int db_len; +	size_t db_len;  	php_mysql_conn *mysql;  	zval *mysql_link = NULL; @@ -1435,7 +1435,7 @@ PHP_FUNCTION(mysql_create_db)  PHP_FUNCTION(mysql_drop_db)  {  	char *db; -	int db_len; +	size_t db_len;  	php_mysql_conn *mysql;  	zval *mysql_link = NULL; @@ -1657,7 +1657,7 @@ PHP_FUNCTION(mysql_list_dbs)  PHP_FUNCTION(mysql_list_tables)  {  	char *db; -	int db_len; +	size_t db_len;  	php_mysql_conn *mysql;  	zval *mysql_link = NULL;  	MYSQL_RES *mysql_result; @@ -1694,7 +1694,7 @@ PHP_FUNCTION(mysql_list_tables)  PHP_FUNCTION(mysql_list_fields)  {  	char *db, *table; -	int db_len, table_len; +	size_t db_len, table_len;  	zval *mysql_link = NULL;  	php_mysql_conn *mysql;  	MYSQL_RES *mysql_result; @@ -1846,7 +1846,7 @@ PHP_FUNCTION(mysql_affected_rows)  PHP_FUNCTION(mysql_escape_string)  {  	char *str; -	int str_len; +	size_t str_len;  	zend_string *escaped_str;  	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) { @@ -1870,7 +1870,7 @@ PHP_FUNCTION(mysql_escape_string)  PHP_FUNCTION(mysql_real_escape_string)  {  	char *str; -	int str_len; +	size_t str_len;  	zend_string *new_str;  	php_mysql_conn *mysql;  	zval *mysql_link = NULL; | 
