summaryrefslogtreecommitdiff
path: root/ext/sybase/php_sybase_db.c
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2004-12-21 06:57:01 +0000
committerfoobar <sniper@php.net>2004-12-21 06:57:01 +0000
commitb6823b673e0ad99a262a0e941a7206d3b38557b5 (patch)
tree5a8dcc118dde1127d1ea75a72c8c7d31357540c9 /ext/sybase/php_sybase_db.c
parentc9f552923acb469adbaeabbe3adfc2e5a41b1804 (diff)
downloadphp-git-b6823b673e0ad99a262a0e941a7206d3b38557b5.tar.gz
- Fixed bug #28248 (Can not compile --with-sybase and freetds)
Diffstat (limited to 'ext/sybase/php_sybase_db.c')
-rw-r--r--ext/sybase/php_sybase_db.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/sybase/php_sybase_db.c b/ext/sybase/php_sybase_db.c
index a6f0886f86..507f863e99 100644
--- a/ext/sybase/php_sybase_db.c
+++ b/ext/sybase/php_sybase_db.c
@@ -1108,9 +1108,11 @@ PHP_FUNCTION(sybase_fetch_object)
{
php_sybase_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU);
if (Z_TYPE_P(return_value)==IS_ARRAY) {
- Z_TYPE_P(return_value)=IS_OBJECT;
- Z_OBJPROP_P(return_value) = Z_ARRVAL_P(return_value);
- Z_OBJCE_P(return_value) = ZEND_STANDARD_CLASS_DEF_PTR;
+ object_and_properties_init(
+ return_value,
+ ZEND_STANDARD_CLASS_DEF_PTR,
+ Z_ARRVAL_P(return_value)
+ );
}
}
/* }}} */