summaryrefslogtreecommitdiff
path: root/ext/msql/php_msql.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2001-08-13 16:13:25 +0000
committerAndi Gutmans <andi@php.net>2001-08-13 16:13:25 +0000
commit9a3d4e736c974213e2c0862d420907604e22e5d5 (patch)
tree070011b98f95da74b5ce0d088e7f9b91ebffe023 /ext/msql/php_msql.c
parent0c0999352f5e3980128023169741fb1092cfd4df (diff)
downloadphp-git-9a3d4e736c974213e2c0862d420907604e22e5d5.tar.gz
- More ZE2 fixes
Diffstat (limited to 'ext/msql/php_msql.c')
-rw-r--r--ext/msql/php_msql.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/msql/php_msql.c b/ext/msql/php_msql.c
index a4441c6823..66639cb1a1 100644
--- a/ext/msql/php_msql.c
+++ b/ext/msql/php_msql.c
@@ -982,9 +982,7 @@ PHP_FUNCTION(msql_fetch_object)
{
php_msql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
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;
+ object_and_properties_init(return_value, &zend_standard_class_def, return_value->value.ht);
}
}
/* }}} */