⚓ T413673 WANObjectCache: The float INF is not representable as an int, cast occurred
Page Menu
Phabricator
Create Task
Maniphest
T413673
WANObjectCache: The float INF is not representable as an int, cast occurred
Closed, Resolved
Public
Actions
Edit Task
Edit Related Tasks...
Create Subtask
Edit Parent Tasks
Edit Subtasks
Merge Duplicates In
Close As Duplicate
Edit Related Objects...
Edit Commits
Edit Mocks
Mute Notifications
Protect as security issue
Assigned To
DAlangi_WMF
Authored By
Reedy
Jan 2 2026, 9:42 PM
2026-01-02 21:42:29 (UTC+0)
Tags
MediaWiki-libs-BagOStuff
(General)
PHP 8.5 support
(MediaWiki core)
ci-test-error (WMF-deployed Build Failure)
MediaWiki-Platform-Team (Q3 Kanban Board)
(In Progress)
Referenced Files
None
Subscribers
Aklapper
Reedy
Description
21:40:18 10) Wikimedia\Tests\ObjectCache\WANObjectCacheTest::testSetAndGet with data set #7 ('pizzacat', INF)
21:40:18 The float INF is not representable as an int, cast occurred
21:40:18
21:40:18 /workspace/src/includes/libs/ObjectCache/WANObjectCache.php:851
21:40:18 /workspace/src/includes/libs/ObjectCache/WANObjectCache.php:793
21:40:18 /workspace/src/tests/phpunit/unit/includes/libs/ObjectCache/WANObjectCacheTest.php:62
WANObjectCache::setMainValue
does
$ttl = (int)$ttl;
Details
Related Changes in Gerrit:
Subject
Repo
Branch
Lines +/-
tests: Fix PHP8.5 error when casting float(INF) as integer
mediawiki/core
REL1_44
+10
-3
tests: Fix PHP8.5 error when casting float(INF) as integer
mediawiki/core
REL1_45
+10
-3
tests: Fix PHP8.5 error when casting float(INF) as integer
mediawiki/core
REL1_43
+10
-3
tests: Fix PHP8.5 error when casting float(INF) as integer
mediawiki/core
master
+10
-3
Customize query in gerrit
Related Objects
Mentions
Mentioned In
T411814: Make PHP 8.5 voting on development (master) branch of MW ecosystem (core, vendor, extensions, skins, libraries) in CI
Event Timeline
Reedy
created this task.
Jan 2 2026, 9:42 PM
2026-01-02 21:42:29 (UTC+0)
Restricted Application
added a project:
MediaWiki-Platform-Team
View Herald Transcript
Jan 2 2026, 9:42 PM
2026-01-02 21:42:30 (UTC+0)
Restricted Application
added a subscriber:
Aklapper
View Herald Transcript
Reedy
updated the task description.
(Show Details)
Jan 2 2026, 9:52 PM
2026-01-02 21:52:49 (UTC+0)
Reedy
moved this task from
Backlog
to
MediaWiki core
on the
PHP 8.5 support
board.
Jan 2 2026, 9:54 PM
2026-01-02 21:54:52 (UTC+0)
Reedy
added a project:
ci-test-error (WMF-deployed Build Failure)
Jan 2 2026, 10:14 PM
2026-01-02 22:14:14 (UTC+0)
A_smart_kitten
mentioned this in
T411814: Make PHP 8.5 voting on development (master) branch of MW ecosystem (core, vendor, extensions, skins, libraries) in CI
Jan 5 2026, 9:44 AM
2026-01-05 09:44:11 (UTC+0)
OWresch-WMF
moved this task from
Inbox, needs triage
to
Q3 Kanban Board
on the
MediaWiki-Platform-Team
board.
Jan 5 2026, 3:48 PM
2026-01-05 15:48:07 (UTC+0)
OWresch-WMF
edited projects, added
MediaWiki-Platform-Team (Q3 Kanban Board)
; removed
MediaWiki-Platform-Team
gerritbot
added a comment.
Jan 12 2026, 6:59 PM
2026-01-12 18:59:06 (UTC+0)
Comment Actions
Change #1225642 had a related patch set uploaded (by D3r1ck01; author: Derick Alangi):
[mediawiki/core@master] tests: Fix PHP8.5 error when casting float(INF) as integer
gerritbot
added a project:
Patch-For-Review
Jan 12 2026, 6:59 PM
2026-01-12 18:59:08 (UTC+0)
DAlangi_WMF
changed the task status from
Open
to
In Progress
Jan 12 2026, 6:59 PM
2026-01-12 18:59:25 (UTC+0)
DAlangi_WMF
claimed this task.
DAlangi_WMF
moved this task from
Essential Work
to
In Progress
on the
MediaWiki-Platform-Team (Q3 Kanban Board)
board.
gerritbot
added a comment.
Jan 12 2026, 10:21 PM
2026-01-12 22:21:01 (UTC+0)
Comment Actions
Change #1225642
merged
by jenkins-bot:
[mediawiki/core@master] tests: Fix PHP8.5 error when casting float(INF) as integer
Maintenance_bot
removed a project:
Patch-For-Review
Jan 12 2026, 10:30 PM
2026-01-12 22:30:51 (UTC+0)
gerritbot
added a comment.
Jan 12 2026, 10:34 PM
2026-01-12 22:34:52 (UTC+0)
Comment Actions
Change #1225693 had a related patch set uploaded (by Zabe; author: Derick Alangi):
[mediawiki/core@REL1_45] tests: Fix PHP8.5 error when casting float(INF) as integer
gerritbot
added a project:
Patch-For-Review
Jan 12 2026, 10:34 PM
2026-01-12 22:34:53 (UTC+0)
Comment Actions
Change #1225694 had a related patch set uploaded (by Zabe; author: Derick Alangi):
[mediawiki/core@REL1_44] tests: Fix PHP8.5 error when casting float(INF) as integer
gerritbot
added a comment.
Jan 12 2026, 10:36 PM
2026-01-12 22:36:55 (UTC+0)
Comment Actions
Change #1225695 had a related patch set uploaded (by Zabe; author: Derick Alangi):
[mediawiki/core@REL1_43] tests: Fix PHP8.5 error when casting float(INF) as integer
gerritbot
added a comment.
Jan 12 2026, 11:14 PM
2026-01-12 23:14:11 (UTC+0)
Comment Actions
Change #1225695
merged
by jenkins-bot:
[mediawiki/core@REL1_43] tests: Fix PHP8.5 error when casting float(INF) as integer
gerritbot
added a comment.
Jan 12 2026, 11:17 PM
2026-01-12 23:17:21 (UTC+0)
Comment Actions
Change #1225693
merged
by jenkins-bot:
[mediawiki/core@REL1_45] tests: Fix PHP8.5 error when casting float(INF) as integer
gerritbot
added a comment.
Jan 12 2026, 11:17 PM
2026-01-12 23:17:33 (UTC+0)
Comment Actions
Change #1225694
merged
by jenkins-bot:
[mediawiki/core@REL1_44] tests: Fix PHP8.5 error when casting float(INF) as integer
Maintenance_bot
removed a project:
Patch-For-Review
Jan 12 2026, 11:31 PM
2026-01-12 23:31:21 (UTC+0)
matmarex
closed this task as
Resolved
Jan 13 2026, 12:08 AM
2026-01-13 00:08:39 (UTC+0)
DAlangi_WMF
awarded a token.
Jan 13 2026, 7:13 AM
2026-01-13 07:13:03 (UTC+0)
Log In to Comment
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct.
Wikimedia Foundation
Code of Conduct
Disclaimer
CC-BY-SA
GPL
Credits