Skip to content

Commit 75575c9

Browse files
authored
Merge pull request #48 from kiddivouchers/new-release
Draft new release
2 parents a523f2b + 3f364d9 commit 75575c9

2 files changed

Lines changed: 2 additions & 123 deletions

File tree

README.md

Lines changed: 1 addition & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -106,128 +106,7 @@ var_dump((new DateTime())->format("c")); // string(25) "2017-01-01T00:00:05+00:0
106106

107107
## CHANGELOG
108108

109-
### version 1.8.0rc1, 2025/11/07
110-
- Support PHP 8.5
111-
112-
### version 1.7.0, 2025/03/21
113-
- Support PHP 8.4
114-
- Remove `gmstrftime()` and `strftime()` support on PHP ≥ 8.4
115-
116-
### version 1.6.0, 2024/02/09
117-
- Support PHP 8.3
118-
119-
### version 1.5.0, 2022/12/29
120-
- Support PHP 8.2
121-
122-
### version 1.4.0, 2022/01/06
123-
- Support PHP 8.1
124-
- Fix reflection mismatches between native PHP and timecop overrides
125-
126-
### version 1.3.1, 2021/07/13
127-
- Fixes problems when non standard timezone identifiers are used. ([#52](https://github.com/hnw/php-timecop/issues/52))
128-
129-
### version 1.3.0, 2021/06/21
130-
- Support PHP 8.0
131-
- Fixed memory leak
132-
- Code cleanup
133-
134-
### version 1.2.10-wp3, 2019/12/06
135-
- Support PHP 7.4.
136-
137-
### version 1.2.10-wp2, 2019/10/22
138-
- Fix incorrect class returned with DateTimeImmutable::createFromFormat() and
139-
pipe character.
140-
141-
### version 1.2.10-wp1, 2019/10/04
142-
- Fix test failure when using PHP 7.3 ([#42](https://github.com/hnw/php-timecop/issues/42))
143-
- Fix some ZTS issues ([PR #45](https://github.com/hnw/php-timecop/pull/45))
144-
- Ensure strict types are respected ([#43](https://github.com/hnw/php-timecop/issues/43))
145-
146-
### version 1.2.10(beta), 2017/11/23
147-
148-
- Fix "double free" bug on PHP 7.2.0 ([#32](https://github.com/hnw/php-timecop/issues/32))
149-
150-
### version 1.2.8(beta), 2017/7/7
151-
152-
- Publish on PECL
153-
- Support Windows (experimental)
154-
155-
### version 1.2.6(beta), 2017/7/4
156-
157-
- Bug fixed: Calling timecop_freeze() on a fast machine sometimes fails to stop the microsecond part of current time.
158-
- Support PHP 7.2.0+
159-
160-
### version 1.2.4(beta), 2017/6/8
161-
162-
- Fix [#18](https://github.com/hnw/php-timecop/issues/18) (Fix date_create_from_format when using `|` char)
163-
- Fix `timecop_date_create()`: The previous version of `timecop_date_create("@[unix timestamp]")` returns +1 hour time on PHP 5.3.9 - 5.4.7 only during the DST.
164-
165-
### version 1.2.3(beta), 2017/1/8
166-
- Fix `timecop_date_create_from_format()`: support time travelling
167-
- Now portions of the generated time not provided in `format` will be set to the travelled time
168-
- The previous version is completely same behavior as `date_create_from_format()`.
169-
- Remove `TimecopDateTime::getTimestamp()`, `TimecopDateTime::setTimestamp()` on PHP 5.2.x
170-
171-
### version 1.2.2(alpha), 2017/1/4
172-
- Implement `TimecopDateTimeImmutable` class and `timecop_date_create_immutable()`, `timecop_date_create_immutable_from_format()` functions.
173-
- Now `timecop_date_create_from_format()` returns `DateTime` instance
174-
175-
### version 1.2.0(alpha), 2016/12/30
176-
- Big internal change (without BC break): handle microseconds accurately in time traveling.
177-
- Now `timecop_freeze()` and `timecop_travel()` accepts either `DateTimeInterface` or `int`.
178-
- With `DateTimeInterface` argument, freezed/traveled time would have fraction of second.
179-
- Implement `timecop_scale()`: Make time go faster.
180-
- Implement `Timecop::***()` as alias of `timecop_***()`. (For `freeze`, `travel`, `return`, `scale`)
181-
182-
### version 1.1.3, 2016/12/27
183-
- Fix crash when non-object passed as 2nd argument of TimecopDateTime::__construct() (Fix [#9](https://github.com/hnw/php-timecop/issues/9))'
184-
- Add CI environment (CentOS, Ubuntu 32-bit, PHP 7.1)
185-
186-
### version 1.1.2(alpha), 2016/04/23
187-
- Fix for stock PHP on Ubuntu
188-
189-
### version 1.1.0(alpha), 2016/04/18
190-
- Support PHP 7.0.x
191-
- Now `new DateTime()` always returns `DateTime` instance
192-
- The previous version returns `TimecopDateTime` instance when `timecop.func_override=1`.
193-
- Implement `timecop_gettimeofday()` and `timecop_microtime()`
194-
195-
### version 1.0.6, 2016/04/15
196-
- Fix #10 (Timecop segfaults when set_error_handler throws an exception)
197-
198-
### version 1.0.5, 2013/11/26
199-
- Fix `TimecopDateTime::createFromFormat()` to reutrn `TimecopDateTime` instance on PHP >= 5.3.4
200-
- The previous version returns `DateTime` instance
201-
- Implement identical function `timecop_date_create_from_format()`
202-
- BUG: not supporting "relative formats" for this method currently.
203-
- Fix behavior of `TimecopDateTime::_construct()` when its 2nd argument is specified.
204-
205-
### version 1.0.4, 2013/03/11
206-
- Fix SIGSEGV in `TimecopDateTime::__construct()` called with NULL as 1st argument
207-
208-
### version 1.0.3, 2013/03/09
209-
210-
- Fix the time traveling implementation for `TimecopDateTime::__construct()`
211-
- Fix `timecop_date_create()` to return `TimecopDateTime` instance
212-
- The previous version returns `DateTime` instance
213-
- Add `TimecopDateTime::getTimestamp()`, `TimecopDateTime::setTimestamp()` only for PHP 5.2.x
214-
215-
### version 1.0.2, 2013/03/06
216-
217-
- Implement `timecop_date_create()`
218-
219-
### Version 1.0.1, 2013/03/04
220-
221-
- Implement time traveling feature for `TimecopDateTime::__construct()` with 1 or 2 arguments
222-
- The previous version works correctly only for no arguments calling: "new TimecopDateTime()"
223-
224-
### version 1.0.0, 2012/11/21
225-
226-
- Fix memory leak
227-
228-
### version 0.0.1, 2012/06/19
229-
230-
- Initial Release
109+
See https://github.com/kiddivouchers/php-timecop/releases
231110

232111
## LICENSE
233112
#

php_timecop.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SOFTWARE.
2525
#ifndef PHP_TIMECOP_H
2626
#define PHP_TIMECOP_H
2727

28-
#define PHP_TIMECOP_VERSION "1.8.0"
28+
#define PHP_TIMECOP_VERSION "1.9.0"
2929

3030
extern zend_module_entry timecop_module_entry;
3131
#define phpext_timecop_ptr &timecop_module_entry

0 commit comments

Comments
 (0)