From: Thies C. Arntzen Date: Sat, 11 Aug 2001 10:29:14 +0000 (+0000) Subject: use macros for accessing properties in object. X-Git-Tag: BEFORE_EXP_MERGE~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6479bfe3b7c7bd85485b249c52c9029d4e64545e;p=php use macros for accessing properties in object. --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index c24f1c06dd..af35e4a533 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -1101,7 +1101,7 @@ _oci_get_ocicoll(zval *id,oci_collection **collection TSRMLS_DC) { zval **coll; - if (zend_hash_find(id->value.obj.properties, "collection", sizeof("collection"), (void **)&coll) == FAILURE) { + if (zend_hash_find(Z_OBJPROP(*id), "collection", sizeof("collection"), (void **)&coll) == FAILURE) { php_error(E_WARNING, "cannot find collection"); return 0; } @@ -1125,7 +1125,7 @@ _oci_get_ocidesc(zval *id,oci_descriptor **descriptor TSRMLS_DC) { zval **desc; - if (zend_hash_find(id->value.obj.properties, "descriptor", sizeof("descriptor"), (void **)&desc) == FAILURE) { + if (zend_hash_find(Z_OBJPROP(*id), "descriptor", sizeof("descriptor"), (void **)&desc) == FAILURE) { php_error(E_WARNING, "cannot find descriptor"); return 0; }