summaryrefslogtreecommitdiff
path: root/ext/fbsql
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2001-08-13 16:40:12 +0000
committerAndi Gutmans <andi@php.net>2001-08-13 16:40:12 +0000
commita5afd0e9d04861e312f95d839c342110f300ca64 (patch)
tree6566a9b446dc8d44c9ef1a0643971589c15fead3 /ext/fbsql
parent9a3d4e736c974213e2c0862d420907604e22e5d5 (diff)
downloadphp-git-a5afd0e9d04861e312f95d839c342110f300ca64.tar.gz
- ZE2 fixes
Diffstat (limited to 'ext/fbsql')
-rw-r--r--ext/fbsql/php_fbsql.c7
1 files changed, 2 insertions, 5 deletions
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);
}
}
/* }}} */