Skip to content

Fix Fever 32 bit ID issue + more PHP type hints#4201

Merged
Alkarex merged 4 commits intoFreshRSS:edgefrom
Alkarex:phpstan_fix_32bit_fever
Feb 6, 2022
Merged

Fix Fever 32 bit ID issue + more PHP type hints#4201
Alkarex merged 4 commits intoFreshRSS:edgefrom
Alkarex:phpstan_fix_32bit_fever

Conversation

@Alkarex
Copy link
Member

@Alkarex Alkarex commented Feb 6, 2022

#fix #4200
Follow up and fix regression from #4110
Entry IDs need to be strings to work on 32-bit systems. There was an error due to enforced Int64 in the Fever API.

@Alkarex Alkarex added Important 🔥 API 🤝 API for other clients labels Feb 6, 2022
@Alkarex Alkarex added this to the 1.20.0 milestone Feb 6, 2022
Comment on lines -488 to +470
$max_id = ctype_digit('' . $_REQUEST['max_id']) ? intval($_REQUEST['max_id']) : null;
$max_id = '' . $_REQUEST['max_id'];
if (!ctype_digit($max_id)) {
$max_id = null;
}
} elseif (isset($_REQUEST['with_ids'])) {
$entry_ids = explode(',', $_REQUEST['with_ids']);
} elseif (isset($_REQUEST['since_id'])) {
// use the since_id argument to request the next $item_limit items
$since_id = ctype_digit('' . $_REQUEST['since_id']) ? intval($_REQUEST['since_id']) : null;
$since_id = '' . $_REQUEST['since_id'];
if (!ctype_digit($since_id)) {
$since_id = null;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is the most relevant par of the bug fix

@Alkarex Alkarex merged commit 1c5cf71 into FreshRSS:edge Feb 6, 2022
@Alkarex Alkarex deleted the phpstan_fix_32bit_fever branch February 6, 2022 13:31
Alkarex added a commit to Alkarex/FreshRSS that referenced this pull request Feb 6, 2022
Alkarex added a commit that referenced this pull request Feb 6, 2022
* More PHP type hints for Fever
Follow-up of #4201
Related to #4200
Alkarex added a commit that referenced this pull request Feb 28, 2022
* More PHP type hints for Fever
Follow-up of #4201
Related to #4200

* Detail

* Draft

* Progress

* More draft

* Fix thumbnail PHP type hint
#4215

* More types

* A bit more

* Refactor FreshRSS_Entry::fromArray

* Progress

* Starts to work

* Categories

* Fonctional

* Layout update

* Fix relative URLs

* Cache system

* Forgotten files

* Remove a debug line

* Automatic form validation of XPath expressions

* data-leave-validation

* Fix reload action

* Simpler examples

* Fix column type for PostgreSQL

* Enforce HTTP encoding

* Readme

* Fix get full content

* target="_blank"

* gitignore

* htmlspecialchars_utf8

* Implement HTML <base>
And fix/revert `xml:base` support in SimplePie simplepie/simplepie@e49c578

* SimplePie upstream PR merged
simplepie/simplepie#723
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API 🤝 API for other clients Important 🔥

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problem using Fever API since FreshRSS 1.19.2

1 participant