From a5afd0e9d04861e312f95d839c342110f300ca64 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Mon, 13 Aug 2001 16:40:12 +0000 Subject: - ZE2 fixes --- ext/fbsql/php_fbsql.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'ext/fbsql/php_fbsql.c') diff --git a/ext/fbsql/php_fbsql.c b/ext/fbsql/php_fbsql.c index 460c77a8ec..4f4786b6e6 100644 --- a/ext/fbsql/php_fbsql.c +++ b/ext/fbsql/php_fbsql.c @@ -2382,11 +2382,8 @@ PHP_FUNCTION(fbsql_fetch_assoc) PHP_FUNCTION(fbsql_fetch_object) { php_fbsql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, FBSQL_ASSOC); - if (return_value->type==IS_ARRAY) - { - return_value->type=IS_OBJECT; - return_value->value.obj.properties = return_value->value.ht; - return_value->value.obj.ce = &zend_standard_class_def; + if (return_value->type==IS_ARRAY) { + object_and_properties_init(return_value, &zend_standard_class_def, return_value->value.ht); } } /* }}} */ -- cgit v1.2.1