Skip to content

Sync with upstream php/web-php master - #4

Merged
bikramtuladhar merged 305 commits into
masterfrom
chore/sync-upstream
Nov 19, 2026
Merged

bikramtuladhar merged 305 commits into
masterfrom
chore/sync-upstream

Conversation

@bikramtuladhar

@bikramtuladhar bikramtuladhar commented Nov 19, 2026 •

Copy link
Copy Markdown

Merges php/web-php master (304 commits) into the fork and keeps the fork's own changes, adjusted where upstream moved files. Compared with upstream, this branch now differs only in include/header.inc, include/prepend.inc, build-manual.sh, .gitignore and the deleted sample manual pages.

Security: a backdoor is dropped here, and it is still on master and possibly on the live server

Commit 61d06e3 "add note probe" (unsigned, author Alex Kyriakidis, 2026-11-09) adds backend/notes/zz/ms_probe.php. The file is obfuscated: it RC4-decrypts a payload using a key taken from the name of a request parameter, then passes the result to eval(). That makes it a password-gated webshell. It was removed from master in its own PR, #3 (merged). This branch leaves it out as well, so the sync does not bring it back. It stays on the server until someone removes it there.

Owner actions, not done here:

  • Confirm with Alex whether he made that commit.
  • Check the deployed release for the file and for anything else it may have dropped, and read the access logs for requests to that path.
  • Rotate any secrets the server can read.

Conflicts and how each was resolved

  • Upstream moved the docroot to public/ (b24d310, June 2026). This produced 22 rename/delete and modify/delete conflicts on manual/en/*, the sample manual pages the fork deleted in favour of build-manual.sh. Resolution: those pages stay deleted at their new path public/manual/en/.
  • build-manual.sh now syncs into public/manual/<lang>/ because that is where the site reads the manual now. Its local-serve hint now says cd public && php -S localhost:8080 .router.php. The cache path ../../shared/manual/<lang> is unchanged.
  • .gitignore: manual/en/ became /public/manual/en/, and upstream's new /.php-cs-fixer.php line is kept.
  • include/header.inc and include/prepend.inc merged with no conflict (both are still at the repo root).
    • header.inc still loads <script async src="https://certificates.dev/rrweb-child.js"></script> right before </head>, after the Matomo <?php } ?>, so no PHP conditional wraps it.
    • prepend.inc still sends Content-Security-Policy: frame-ancestors 'self' https://certificates.dev https://staging.certificates.dev in place of upstream's X-Frame-Options: SAMEORIGIN. Upstream did not change that area.

Own commits

Commit What it does Status
0c9ab3b, 7cc7eea, 24d1b12 build-manual.sh Kept, now writes to public/
9691216 rrweb child recorder Kept
0a7670e frame-ancestors CSP Kept
61d06e3 "note probe" Left out (removed in #3; see Security)

The .token.operator CSS fix (0c7db78, php#1839) is an upstream commit, so it comes in through the merge.

Tests

  • php -l on all 863 PHP/inc files that changed against origin/master: no syntax errors.
  • bash -n build-manual.sh: OK.
  • vendor/bin/phpunit --testsuite=unit: 115 of 119 pass. The 4 failures are all in FindManualPageTest (the slow-search and SQLite lookup cases). They read the sample manual pages under public/manual/en, which this fork removes. With upstream's sample pages put back temporarily, all 119 pass. On the server, build-manual.sh provides the real manual.
  • The end-to-end and Playwright suites were not run, because they start a server.

Deployment (php-docs.certificates.dev)

  • The repo holds no deploy config: no Dockerfile, deploy script or nginx config. Upstream's workflows only run for repository_owner == 'php'.
  • The build-manual.sh comment ("Forge keeps releases/ next to shared/") points to a Laravel Forge zero-downtime deploy. Its deploy script and nginx site config live in Forge.
  • Before or together with merging this, the Forge site's web directory has to change from the repo root to /public. Otherwise the site breaks: pages now live under public/ and include ../include/….
  • The deploy script must keep running ./build-manual.sh from the release root.
  • The nginx X-Frame-Options: SAMEORIGIN that the server adds should be removed in Forge. Browsers that support CSP2 ignore XFO when frame-ancestors is present, but the extra header is misleading and older clients still obey it.

Not verified

  • Nothing was deployed or tested in a browser. Framing from certificates.dev and the rrweb replay are unchecked.
  • build-manual.sh was not run against rsync.php.net.
  • The Forge settings above are inferred from the repo. Nobody has looked at Forge.
  • Whether the live server currently has ms_probe.php.

ktherage and others added 30 commits June 1, 2026 11:50
This list was the precursor of what became PHP-FIG.  That was 17 years ago.  No one should be joining this list...
…5.3 (php#1912)

Signed-off-by: dependabot[bot] <support@github.com>
…5.4 (php#1915)

Bumps [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) from 3.95.3 to 3.95.4.
- [Release notes](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases)
- [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md)
- [Commits](PHP-CS-Fixer/PHP-CS-Fixer@v3.95.3...v3.95.4)

---
updated-dependencies:
- dependency-name: friendsofphp/php-cs-fixer
  dependency-version: 3.95.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This improves readability (particularly on smaller screens), since code blocks with overflow can be easily scrolled horizontally to read longer lines, rather than trying to visually parse code with line breaks in unintended places (which can even appear as invalid syntax when a line break is in the middle of a token).
This is possible on the previous release pages, but for some reason wasn't implemented for PHP 8.5.
This is now fixed in the CDN configuration, so we can restore the old
behaviour.

This reverts commit f882125.
* Use PHP 8.5 styling for all release pages

Enables dark mode, syntax highlighting of variables, and unified design for all release pages. Release pages prior to 8.5 still lack the Key Features section.

Also fixed inconsistent i18n language spelling in the dropdowns on a few release pages, and corrected an English grammar typo on the PHP 8.1 page. No other content has been changed.

Also removed duplicate feature title translation strings.

* Switch to CSS animations for hero background

This allows Playwright to automatically disable the animations for stable screenshot testing.
Per feedback from other maintainers, these tests will just be a waste of time as we make numerous necessary design fixes and improvements.
…5.7 (php#1925)

Signed-off-by: dependabot[bot] <support@github.com>
Swapped order of the "translation disclaimer/contribution" paragraph and the list of languages to make page easier to navigate. Also, cleaned up language in the paragraph. Also, removed unnecessary div surrounding first two paragraphs. Styles are identical, could not determine any reason for them to be in their own div.
added spaces in title to match how page is titled on docs.php. Multiple small grammar fixes.
removed paragraph about mirrors
theodorejb and others added 29 commits November 16, 2026 10:52
* Fix PHPStan errors in PHP 8.4 and 8.5 release page common.php

Add parameter types to message() and handle filter_var() returning false instead of passing it to htmlspecialchars(), then remove the corresponding baseline entries.

I already applied this fix to the PHP 8.6 common.php on Sergey's branch.

* Fix PHPStan errors in PHP 8.0-8.3 release page common.php

Apply the same fixes as for 8.4 and 8.5: add parameter types to message() and handle filter_var() returning false, then remove the corresponding baseline entries.
Bumps [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) from 3.95.28 to 3.95.30.
- [Release notes](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases)
- [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md)
- [Commits](PHP-CS-Fixer/PHP-CS-Fixer@v3.95.28...v3.95.30)

---
updated-dependencies:
- dependency-name: friendsofphp/php-cs-fixer
  dependency-version: 3.95.30
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
The video backgrounds added in php#2061 were downloaded in both themes (about 1.3 MB total) and didn't follow the original animation. This restores the original orb animation, but renders each gradient once as a static SVG background image on nested HTML elements, so the x, y, and rotate animations only change transform and can run on the compositor instead of repainting the whole SVG every frame.

Rendering matches the original SVG version in light and dark mode. Under prefers-reduced-motion, the orbs are now paused on their first frame.
Even when the hero is scrolled out of view, the browser keeps ticking the orb animations on the compositor every frame. An IntersectionObserver now toggles a paused class on the hero background so the animations stop while it isn't visible and resume from the same position when it scrolls back into view.
PHP 8.6 has not been released yet.

Co-authored-by: Tim Düsterhus <tim@bastelstu.be>
Co-authored-by: Daniel Scherzer <daniel.e.scherzer@gmail.com>
Co-authored-by: Theodore Brown <theodorejb@outlook.com>
`$supported` could be misunderstood as “security support” or similar.
The previous title and key features description were copied directly from the 8.5 release page, and didn't reflect the 8.6 improvements.

I attempted to update the existing translations, but I don't speak those languages so they should be checked by the original translators.
When the theme is set to system, listen for changes to the prefers-color-scheme media query so the page switches between light and dark mode without requiring a reload.
Instead of cycling between light, dark, and system, the theme button now switches to the opposite of the displayed theme. If the new theme matches the system theme, the setting is saved as system, so every click changes the theme and a saved light or dark setting is kept even if the system theme later changes to match it.
Co-authored-by: Luffy <lufei@php.net>
This does not yet mean the release of PHP 8.6, but it does offer a look at the features of the new version.
Upstream moved the docroot into public/ (b24d310). The pre-built
manual now lives in public/manual/<lang>, so build-manual.sh and
.gitignore point there and the committed sample manual files stay
deleted.

Drops backend/notes/zz/ms_probe.php: it decrypts a request-supplied
payload and passes it to eval().
@bikramtuladhar
bikramtuladhar merged commit 38369b1 into master Nov 19, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.