diff options
| author | Thies C. Arntzen <thies@php.net> | 2001-08-11 10:29:14 +0000 |
|---|---|---|
| committer | Thies C. Arntzen <thies@php.net> | 2001-08-11 10:29:14 +0000 |
| commit | 6479bfe3b7c7bd85485b249c52c9029d4e64545e (patch) | |
| tree | f1f746c8dc851a655afd8ce7b7e63c0159e61ddb /ext | |
| parent | fe956141fc9c82b8316c5b32bbd9fc332fc3a155 (diff) | |
| download | php-git-6479bfe3b7c7bd85485b249c52c9029d4e64545e.tar.gz | |
use macros for accessing properties in object.
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/oci8/oci8.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |
