Repository navigation
Conversation
This was referenced Oct 22, 2026
lacatoire
marked this pull request as ready for review
October 27, 2026 12:37
lacatoire
requested review from
derickr,
saundefined,
sgolemon and
sy-records
as code owners
October 27, 2026 12:37
Pages of the third-party extensions that moved to php/doc-extensions are served from /manual/extensions/ (English only): - a 301 from /manual/<lang>/<page>.php to /manual/extensions/<page>.php for the moved pages - no language chooser on the pages of the extensions manual - shortcuts (php.net/apcu_add) fall back to the extensions manual - shortcuts that only expand to a page are served in place Add tests/extensions-migration.sh, the end-to-end test of the block, and the Playwright tests of tests/EndToEnd/ExtensionsMigration (run with PLAYWRIGHT=1).
lacatoire
force-pushed
the
feat/doc-extensions-redirects
branch
from
November 23, 2026 12:45
4277859 to
22e9b62
Compare
The extensions manual map was only read for /manual/<lang>/<page>.php and its targets could not carry an anchor. Read its 'both' and 'shortcut' maps too, keep the anchor, and test the mongodb and mysql cases.
Check the targets and anchors of the maps, the shortcuts and the renamed pages that moved, the redirects of the English manual, and guard against a redirects.json whose maps are not arrays.
The two enum.random.intervalboundary redirects no longer lead to a dead page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on #1960 (redirects.json sidecar), whose commits this branch includes. This pull request only adds what that one does not do:
/manual/extensions/: base href and no language chooser (include/shared-manual.inc);php.net/apcu_add) fall back to that manual (include/manual-lookup.inc);tests/extensions-migration.sh, the end-to-end test of the block. WithPLAYWRIGHT=1it also runs the Playwright tests oftests/EndToEnd/ExtensionsMigration: every old URL, variants of it, the redirects of doc-en that lead to the extensions manual, links in both directions and journeys in Chromium.A page that moved and kept its name needs no redirect:
error.php(#1960) sends it to the extensions manual when it exists only there.Block: php/phd#270, php/phd#272, php/phd#274, php/doc-extensions#49, php/doc-extensions#58, php/doc-en#5998, php/doc-en#6136, php/doc-fr#3696, php/doc-base#359. Merge order and how to test: php/doc-fr#3696.