From 050d7e38ad4163e7fa65e26724d3516ce7b33601 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 15 Apr 2014 15:40:40 +0400 Subject: Cleanup (1-st round) --- ext/mysql/php_mysql.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/mysql/php_mysql.c') diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 573c1728ac..b6d43687e0 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -2426,9 +2426,9 @@ PHP_FUNCTION(mysql_fetch_field) } object_init(return_value); - add_property_string(return_value, "name", (mysql_field->name?mysql_field->name:""), 1); - add_property_string(return_value, "table", (mysql_field->table?mysql_field->table:""), 1); - add_property_string(return_value, "def", (mysql_field->def?mysql_field->def:""), 1); + add_property_string(return_value, "name", (mysql_field->name?mysql_field->name:"")); + add_property_string(return_value, "table", (mysql_field->table?mysql_field->table:"")); + add_property_string(return_value, "def", (mysql_field->def?mysql_field->def:"")); add_property_long(return_value, "max_length", mysql_field->max_length); add_property_long(return_value, "not_null", IS_NOT_NULL(mysql_field->flags)?1:0); add_property_long(return_value, "primary_key", IS_PRI_KEY(mysql_field->flags)?1:0); @@ -2436,7 +2436,7 @@ PHP_FUNCTION(mysql_fetch_field) add_property_long(return_value, "unique_key", (mysql_field->flags&UNIQUE_KEY_FLAG?1:0)); add_property_long(return_value, "numeric", IS_NUM(mysql_field->type)?1:0); add_property_long(return_value, "blob", IS_BLOB(mysql_field->flags)?1:0); - add_property_string(return_value, "type", php_mysql_get_field_name(mysql_field->type), 1); + add_property_string(return_value, "type", php_mysql_get_field_name(mysql_field->type)); add_property_long(return_value, "unsigned", (mysql_field->flags&UNSIGNED_FLAG?1:0)); add_property_long(return_value, "zerofill", (mysql_field->flags&ZEROFILL_FLAG?1:0)); } -- cgit v1.2.1