[PHP-CVS] [php-src] master: CI: fix test error in 588dd04 (#23033)

[email protected] (NickSdot via GitHub) Tue, 4 Aug 2026 14:01:13 +0000
Newsgroups php.cvs
Message-ID <[email protected]>
Author: NickSdot (NickSdot)
Committer: GitHub (web-flow)
Pusher: LamentXU123
Date: 2026-08-04T22:01:09+08:00

Commit: https://github.com/php/php-src/commit/c5511d7f281cb60f04187f5d5c4923364ee16a18
Raw diff: https://github.com/php/php-src/commit/c5511d7f281cb60f04187f5d5c4923364ee16a18.diff

CI: fix test error in 588dd04 (#23033)

588dd04 caused a little oopsie woopsie that makes unrelated PRs CI fail.
This commit fix it.

Changed paths:
  M  ext/calendar/tests/bug80185_32bit.phpt


Diff:

diff --git a/ext/calendar/tests/bug80185_32bit.phpt b/ext/calendar/tests/bug80185_32bit.phpt
index 8d7088fe856c..ed54502f4432 100644
--- a/ext/calendar/tests/bug80185_32bit.phpt
+++ b/ext/calendar/tests/bug80185_32bit.phpt
@@ -11,16 +11,16 @@ if (PHP_INT_SIZE != 4) die("skip for 32bit platforms only");
 try {
     var_dump(jdtounix(2465712));
 } catch (ValueError $ex) {
-    echo $ex->getMessage(), PHP_EOL;
+    echo $ex::class, ': ', $ex->getMessage(), PHP_EOL;
 }
 var_dump(jdtounix((int)(PHP_INT_MAX / 86400 + 2440588)));
 try {
     var_dump(jdtounix((int)(PHP_INT_MAX / 86400 + 2440589)));
 } catch (ValueError $ex) {
-    echo $ex->getMessage(), PHP_EOL;
+    echo $ex::class, ': ', $ex->getMessage(), PHP_EOL;
 }
 ?>
 --EXPECT--
-jday must be between 2440588 and 2465443
+ValueError: jdtounix(): Argument #1 ($julian_day) jday must be between 2440588 and 2465443
 int(2147472000)
-jday must be between 2440588 and 2465443
+ValueError: jdtounix(): Argument #1 ($julian_day) jday must be between 2440588 and 2465443