From 5e949e652748e3c1c9474da4eee1588ad0d24122 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Thu, 23 Dec 2021 18:21:54 +0000 Subject: [PATCH] Fix couple of references to the wrong arginfo Build passes right now as these references are aliases to the same definition but for PHP 8 they won't be. --- timecop_php7.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/timecop_php7.c b/timecop_php7.c index 549cdb1..2c1d6f7 100644 --- a/timecop_php7.c +++ b/timecop_php7.c @@ -118,7 +118,7 @@ const zend_function_entry timecop_functions[] = { PHP_FE(timecop_date_create, arginfo_timecop_date_create) PHP_FE(timecop_date_create_from_format, arginfo_timecop_date_create_from_format) PHP_FE(timecop_date_create_immutable, arginfo_timecop_date_create) - PHP_FE(timecop_date_create_immutable_from_format, arginfo_timecop_date_create_from_format) + PHP_FE(timecop_date_create_immutable_from_format, arginfo_timecop_date_create_immutable_from_format) {NULL, NULL, NULL} }; /* }}} */ @@ -151,7 +151,7 @@ static zend_function_entry timecop_funcs_orig_date[] = { static zend_function_entry timecop_funcs_immutable[] = { PHP_ME(TimecopDateTimeImmutable, __construct, arginfo_class_TimecopDateTimeImmutable___construct, ZEND_ACC_CTOR | ZEND_ACC_PUBLIC) - PHP_ME_MAPPING(createFromFormat, timecop_date_create_immutable_from_format, arginfo_timecop_date_create_from_format, + PHP_ME_MAPPING(createFromFormat, timecop_date_create_immutable_from_format, arginfo_timecop_date_create_immutable_from_format, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC) {NULL, NULL, NULL} };