From 78fb3083f15c0724923ecf74d448c2adaaf102d0 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Mon, 21 Jun 2021 16:39:00 +0100 Subject: [PATCH 1/3] Bump version --- php_timecop.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/php_timecop.h b/php_timecop.h index db9f9c1..9cfce01 100644 --- a/php_timecop.h +++ b/php_timecop.h @@ -25,7 +25,7 @@ SOFTWARE. #ifndef PHP_TIMECOP_H #define PHP_TIMECOP_H -#define PHP_TIMECOP_VERSION "1.2.10-wp1" +#define PHP_TIMECOP_VERSION "1.3.0" extern zend_module_entry timecop_module_entry; #define phpext_timecop_ptr &timecop_module_entry @@ -192,12 +192,12 @@ struct timecop_override_class_entry { #define call_php_function_with_3_params(function_name, retval, arg1, arg2, arg3) \ _call_php_function_with_3_params(function_name, retval, arg1, arg2, arg3 TSRMLS_CC) -/* In every utility function you add that needs to use variables - in php_timecop_globals, call TSRMLS_FETCH(); after declaring other +/* In every utility function you add that needs to use variables + in php_timecop_globals, call TSRMLS_FETCH(); after declaring other variables used by that function, or better yet, pass in TSRMLS_CC after the last function argument and declare your utility function with TSRMLS_DC after the last declared argument. Always refer to - the globals in your function as TIMECOP_G(variable). You are + the globals in your function as TIMECOP_G(variable). You are encouraged to rename these macros something shorter, see examples in any other php module directory. */ From e1a42424177d768a4ac0f26ca32731d1bf209ef8 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Mon, 21 Jun 2021 16:41:14 +0100 Subject: [PATCH 2/3] Update changelog --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index faa9792..c529696 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,11 @@ var_dump((new DateTime())->format("c")); // string(25) "2017-01-01T00:00:05+00:0 ## CHANGELOG +### version 1.3.0, 2021/06/21 +- Support PHP 8.0 +- Fixed memory leak +- Code cleanup + ### version 1.2.10-wp3, 2019/12/06 - Support PHP 7.4. @@ -185,7 +190,7 @@ var_dump((new DateTime())->format("c")); // string(25) "2017-01-01T00:00:05+00:0 ### version 1.0.5, 2013/11/26 - Fix `TimecopDateTime::createFromFormat()` to reutrn `TimecopDateTime` instance on PHP >= 5.3.4 - The previous version returns `DateTime` instance - - Implement identical function `timecop_date_create_from_format()` + - Implement identical function `timecop_date_create_from_format()` - BUG: not supporting "relative formats" for this method currently. - Fix behavior of `TimecopDateTime::_construct()` when its 2nd argument is specified. From 45ae3e921a8de634abf09cf0929948bdb631c124 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Mon, 21 Jun 2021 16:44:02 +0100 Subject: [PATCH 3/3] Fix test --- tests/core_013.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core_013.phpt b/tests/core_013.phpt index 9984b42..b23edc8 100644 --- a/tests/core_013.phpt +++ b/tests/core_013.phpt @@ -14,7 +14,7 @@ phpinfo(); --EXPECTREGEX-- .* timecop => enabled -Version => \d+\.\d+\.\d+-wp\d+ +Version => \d+\.\d+\.\d+ Directive => Local Value => Master Value timecop\.func_override => 1 => 1