Skip to content

Require PHP 7.4 or newer - #1006

Merged
jtojnar merged 3 commits into
simplepie:masterfrom
jgalea:issue-963-drop-php72-73
Nov 1, 2026
Merged

jtojnar merged 3 commits into
simplepie:masterfrom
jgalea:issue-963-drop-php72-73

Conversation

@jgalea

@jgalea jgalea commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

This PR raises the minimum PHP version to 7.4, as proposed in #963. Which release drops 7.2 and 7.3 is up to the maintainers, so I haven't put a version number in the README.

  • composer.json requires >=7.4.0, and the 7.2 and 7.3 jobs are removed from the CI matrix
  • the PHP version check in the SimplePie constructor now asks for 7.4
  • the File class now sets CURLOPT_SUPPRESS_CONNECT_HEADERS when the constant exists, which resolves the TODO there. Where it doesn't exist (libcurl older than 7.54), the old stripping through Parser::prepareHeaders() still runs.
  • the ?? null fallbacks in IRI::parse_iri() for PREG_UNMATCHED_AS_NULL are removed, since PHP 7.4 always sets those groups
  • README, the compatibility test page and CHANGELOG now say 7.4

phpunit gives the same 14 failures as master (2102 tests), and phpstan and php-cs-fixer are clean. There are no new tests, because the change removes code paths. I haven't tested the proxy CONNECT path against a real proxy.

Comment thread src/SimplePie.php Resolved
Comment thread README.markdown Resolved
@Art4 Art4 added this to the 1.10.0 milestone Oct 30, 2026
@pull-request-size pull-request-size Bot added size/S and removed size/M labels Nov 1, 2026
@jtojnar
jtojnar merged commit 837d8ac into simplepie:master Nov 1, 2026
9 checks passed
Alkarex added a commit to FreshRSS/simplepie that referenced this pull request Nov 13, 2026
Merge upstream
Resolving conflicts with:
* Require PHP 7.4 or newer simplepie#1006
* File,Psr18Client: Remove support for local files simplepie#994
Alkarex added a commit to FreshRSS/FreshRSS that referenced this pull request Nov 14, 2026
In particular:
* File,Psr18Client: Remove support for local files simplepie/simplepie#994
* Parser: ignore whitespace before the XML declaration simplepie/simplepie#1005
* Require PHP 7.4 or newer simplepie/simplepie#1006, simplepie/simplepie#992
* Parser: treat https Atom 1.0 namespace as Atom simplepie/simplepie#1010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants