From: Remi Collet Date: Thu, 8 Sep 2022 15:24:42 +0000 (+0200) Subject: allow dynamic properties in Pq\Connection X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=commitdiff_plain;h=e518cb365f1e28dd4779ce37888a89ac54278c65 allow dynamic properties in Pq\Connection --- diff --git a/src/php_pqconn.c b/src/php_pqconn.c index 6278323..0b39d25 100644 --- a/src/php_pqconn.c +++ b/src/php_pqconn.c @@ -2001,6 +2001,9 @@ PHP_MINIT_FUNCTION(pqconn) INIT_NS_CLASS_ENTRY(ce, "pq", "Connection", php_pqconn_methods); php_pqconn_class_entry = zend_register_internal_class_ex(&ce, NULL); php_pqconn_class_entry->create_object = php_pqconn_create_object; +#if PHP_VERSION_ID >= 80200 + php_pqconn_class_entry->ce_flags |= ZEND_ACC_ALLOW_DYNAMIC_PROPERTIES; +#endif memcpy(&php_pqconn_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); php_pqconn_object_handlers.offset = XtOffsetOf(php_pqconn_object_t, zo);