From 1bcf478c698edd43a98c29acc27e5f3e3d662c87 Mon Sep 17 00:00:00 2001 From: Anirudh Sanjeev Date: Fri, 8 Nov 2013 07:07:10 -0800 Subject: [PATCH] Fix weird issue where INF is not respected in PHP 5.5 Summary: After upgrading to PHP 5.5, the conduit list was not fully visible because INF was being treated as "0" for some reason. Fixed by making it a PHP_MAX_INT Test Plan: Checked on PHP 5.5 Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7530 --- .../conduit/query/PhabricatorConduitSearchEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/conduit/query/PhabricatorConduitSearchEngine.php b/src/applications/conduit/query/PhabricatorConduitSearchEngine.php index 33b61ba007..91a0ad7e49 100644 --- a/src/applications/conduit/query/PhabricatorConduitSearchEngine.php +++ b/src/applications/conduit/query/PhabricatorConduitSearchEngine.php @@ -4,7 +4,7 @@ final class PhabricatorConduitSearchEngine extends PhabricatorApplicationSearchEngine { public function getPageSize(PhabricatorSavedQuery $saved) { - return INF; + return PHP_INT_MAX - 1; } public function buildSavedQueryFromRequest(AphrontRequest $request) {