Skip to content

Commit 8a8859b

Browse files
committed
Fixed regression: Using more than one sign is now OK again when using modify()
1 parent 40d06fb commit 8a8859b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ PHP NEWS
55
- Date:
66
. Fixed bug GH-15582: Crash when not calling parent constructor of
77
DateTimeZone. (Derick)
8+
. Fixed regression where signs after the first one were ignored while parsing
9+
a signed integer, with the DateTimeInterface::modify() function. (Derick)
810

911
- SOAP:
1012
. Fixed bug #62900 (Wrong namespace on xsd import error message). (nielsdos)

ext/date/tests/bug40861.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ echo $result . "\n";
2828
?>
2929
--EXPECT--
3030
2000-01-01 13:00:00
31-
2000-01-01 13:00:00
3231
2000-01-01 11:00:00
3332
2000-01-01 13:00:00
33+
2000-01-01 13:00:00

0 commit comments

Comments
 (0)