X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pq_object.h;h=a274dd4bb2556b901d2ad648f756cacf816b981f;hp=2c7417a6e6d61369c26ee6ad8a46a43a868601b4;hb=7ebb278e7854e8dd7c4fd6c0363531642d135676;hpb=9841e1083e609ada4257bc519cfb33fd463f1824 diff --git a/src/php_pq_object.h b/src/php_pq_object.h index 2c7417a..a274dd4 100644 --- a/src/php_pq_object.h +++ b/src/php_pq_object.h @@ -49,7 +49,13 @@ extern HashTable *php_pq_object_properties(zval *object); HashTable *php_pq_object_get_gc(zval *object, zval **table, int *n); extern zend_class_entry *ancestor(zend_class_entry *ce); extern zval *php_pq_object_read_prop(zval *object, zval *member, int type, void **cache_slot, zval *tmp); -extern void php_pq_object_write_prop(zval *object, zval *member, zval *value, void **cache_slot); +#if PHP_VERSION_ID >= 70400 +typedef zval *php_pq_object_write_prop_t; +#else +typedef void php_pq_object_write_prop_t; +#endif +extern php_pq_object_write_prop_t php_pq_object_write_prop(zval *object, zval *member, zval *value, void **cache_slot); +extern zval *php_pq_object_get_prop_ptr_null(zval *object, zval *member, int type, void **cache_slot); extern void php_pq_object_prophandler_dtor(zval *zv); #endif