From: Michael Wallner Date: Thu, 24 Sep 2020 09:15:14 +0000 (+0200) Subject: fix mind effup X-Git-Tag: v2.1.8~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=9d845b3fca5493dad923ddc21ae20e9b11005f5d;p=m6w6%2Fext-pq fix mind effup --- diff --git a/src/php_pq_object.c b/src/php_pq_object.c index 6d80a1f..c8d1e50 100644 --- a/src/php_pq_object.c +++ b/src/php_pq_object.c @@ -103,11 +103,13 @@ static int apply_pi_to_ht(zval *p, void *a) zval zobj; ZVAL_OBJ(&zobj, &arg->pq_obj->zo); +# if PHP_VERSION_ID < 70100 + property = zend_read_property(arg->pq_obj->zo.ce, &zobj, pi->name->val, pi->name->len, 0, &tmp_prop); +# else property = zend_read_property_ex(arg->pq_obj->zo.ce, &zobj, pi->name, 0, &tmp_prop); -#elif PHP_VERSION_ID >= 70100 - property = zend_read_property_ex(arg->pq_obj->zo.ce, &arg->pq_obj->zo, pi->name, 0, &tmp_prop); +# endif #else - property = zend_read_property(arg->pq_obj->zo.ce, &arg->pq_obj->zo, pi->name->val, pi->name->len, 0, &tmp_prop); + property = zend_read_property_ex(arg->pq_obj->zo.ce, &arg->pq_obj->zo, pi->name, 0, &tmp_prop); #endif zend_hash_update(arg->ht, pi->name, property); }