PHP-7.4 compat
[m6w6/ext-pq] / src / php_pqcancel.c
index 400e00714b84d7c985047d21efa1db185e35bf72..e3b6ed7652304e65b2890686afd6cbaefb0baa48 100644 (file)
@@ -130,7 +130,7 @@ static PHP_METHOD(pqcancel, cancel) {
 }
 
 static zend_function_entry php_pqcancel_methods[] = {
-       PHP_ME(pqcancel, __construct, ai_pqcancel_construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
+       PHP_ME(pqcancel, __construct, ai_pqcancel_construct, ZEND_ACC_PUBLIC)
        PHP_ME(pqcancel, cancel, ai_pqcancel_cancel, ZEND_ACC_PUBLIC)
        {0}
 };
@@ -156,7 +156,7 @@ PHP_MINIT_FUNCTION(pqcancel)
        php_pqcancel_object_handlers.read_property = php_pq_object_read_prop;
        php_pqcancel_object_handlers.write_property = php_pq_object_write_prop;
        php_pqcancel_object_handlers.clone_obj = NULL;
-       php_pqcancel_object_handlers.get_property_ptr_ptr = NULL;
+       php_pqcancel_object_handlers.get_property_ptr_ptr = php_pq_object_get_prop_ptr_null;
        php_pqcancel_object_handlers.get_gc = php_pq_object_get_gc;
        php_pqcancel_object_handlers.get_properties = php_pq_object_properties;
        php_pqcancel_object_handlers.get_debug_info = php_pq_object_debug_info;