Skip to content

Commit

Permalink
Merge pull request #7 from kiddivouchers/release-1.3
Browse files Browse the repository at this point in the history
Release 1.3.0
  • Loading branch information
cs278 authored Jun 21, 2021
2 parents ded2422 + 45ae3e9 commit 53e7722
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down
8 changes: 4 additions & 4 deletions php_timecop.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/core_013.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53e7722

Please sign in to comment.