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.
Serve the extensions manual (English only, from php/doc-extensions) from
/manual/extensions/: a 301 from/manual/<lang>/<page>.phpto/manual/extensions/<page>.phpfor the moved pages, no language chooser on its pages, and shortcuts (php.net/apcu_add) that fall back to it. Addstests/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, links in both directions, journeys in Chromium).Includes the commits of #1960.
Block: php/phd#270, php/phd#272, php/doc-extensions#49, php/doc-extensions#57, php/doc-en#5998, php/doc-fr#3696, php/doc-base#359. Merge order and how to test: php/doc-fr#3696.
The tests of the block need php/doc-extensions#57 (the redirects of the mongodb and mysql pages renamed before the move): merge it before or with this pull request.