You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a 32-bit PHP version, getTimestamp() in DateTimeHelper::ParseRFC2822DateString() fails with:
PHP Fatal error: Uncaught Error: Epoch doesn't fit in a PHP integer in Messages.php:101
This happens because getTimestamp() returns an integer, which exceeds the 32-bit limit for large timestamps.
Steps to Reproduce
Install SnappyMail on a 32-bit PHP system (e.g., Raspberry Pi).
Attempt to parse an RFC 2822 date string with a large year (e.g., Thu, 10 Jun 2038 08:58:33 -0700).
Observe the fatal error.
Expected Behavior
It should not crash on 32-bit PHP.
The text was updated successfully, but these errors were encountered:
sgoranov
changed the title
ParseRFC2822DateString integer overflow on 32-bit PHP (getTimestamp() fails)
DateTimeHelper::ParseRFC2822DateString integer overflow on 32-bit PHP (getTimestamp() fails)
Feb 12, 2025
Description
On a 32-bit PHP version,
getTimestamp()
inDateTimeHelper::ParseRFC2822DateString()
fails with:PHP Fatal error: Uncaught Error: Epoch doesn't fit in a PHP integer in Messages.php:101
This happens because
getTimestamp()
returns an integer, which exceeds the 32-bit limit for large timestamps.Steps to Reproduce
Thu, 10 Jun 2038 08:58:33 -0700
).Expected Behavior
The text was updated successfully, but these errors were encountered: