sabre-io / Baikal

Baïkal is a Calendar+Contacts server
https://sabre.io/baikal/
GNU General Public License v3.0
2.44k stars 282 forks source link

PHP 8.2 ValueError: Epoch doesn't fit in a PHP integer in PDO.php #1223

Open Octet-nl opened 8 months ago

Octet-nl commented 8 months ago

Baikal version: 0.9.4

Expected behaviour: No messages in /var/log/apache2/error.log

Current behaviour: Lots of messages in /var/log/apache2/error.log:

[Wed Dec 06 11:08:52.068143 2023] [php:notice] [pid 1047] [client 99.999.999.999:9999] ValueError: Epoch doesn't fit in a PHP integer in /www/baikal/vendor/sabre/dav/lib/CalDAV/Backend/PDO.php:636\nStack trace:\n#0 /www/baikal/vendor/sabre/dav/lib/CalDAV/Backend/PDO.php(636): DateTimeImmutable->getTimestamp()\n#1 /www/baikal/vendor/sabre/dav/lib/CalDAV/Backend/PDO.php(545): Sabre\\CalDAV\\Backend\\PDO->getDenormalizedData()\n#2 /www/baikal/vendor/sabre/dav/lib/CalDAV/Calendar.php(199): Sabre\\CalDAV\\Backend\\PDO->createCalendarObject()\n#3 /www/baikal/vendor/sabre/dav/lib/DAV/Server.php(1098): Sabre\\CalDAV\\Calendar->createFile()\n#4 /www/baikal/vendor/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\\DAV\\Server->createFile()\n#5 /www/baikal/vendor/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\\DAV\\CorePlugin->httpPut()\n#6 /www/baikal/vendor/sabre/dav/lib/DAV/Server.php(472): Sabre\\DAV\\Server->emit()\n#7 /www/baikal/vendor/sabre/dav/lib/DAV/Server.php(253): Sabre\\DAV\\Server->invokeMethod()\n#8 /www/baikal/vendor/sabre/dav/lib/DAV/Server.php(321): Sabre\\DAV\\Server->start()\n#9 /www/baikal/Core/Frameworks/Baikal/Core/Server.php(119): Sabre\\DAV\\Server->exec()\n#10 /www/baikal/html/dav.php(69): Baikal\\Core\\Server->start()\n#11 {main}

Steps to reproduce: This message pops up (a lot) on my new RPi 4 with RPi OS Bookworm (PHP 8.2.7) when I synchronize my calendar. On my old RPi 3 (Buster, PHP 7.3.31) no messages appear.