diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-06 20:38:19 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-06 20:38:19 +0900 |
| commit | 91e7102d02cfcda0bf1b82ae1b3fb30900495360 (patch) | |
| tree | 36be9051ad3a0a12c72ec4ab2afb2359b8983c65 /scripts/bench/lib.sh | |
| parent | a7bd624b3e9d4e9493435be1e6016303830e7087 (diff) | |
| download | php-shirabe-91e7102d02cfcda0bf1b82ae1b3fb30900495360.tar.gz php-shirabe-91e7102d02cfcda0bf1b82ae1b3fb30900495360.tar.zst php-shirabe-91e7102d02cfcda0bf1b82ae1b3fb30900495360.zip | |
fix(platform-repository): report the icu and imagick libraries
PlatformRepository probes ResourceBundle, IntlChar and Imagick to derive
lib-icu-cldr, lib-icu-unicode and lib-imagick-imagemagick. Those probes ran
against the shim's hard-coded class_exists allowlist, which never names
them, so the packages were silently missing: on a machine with intl,
`show --platform` listed fewer libraries than upstream Composer does.
The runtime seam now asks the real PHP: hasClass over RPC, and construct /
invoke through the worker for the three classes PlatformRepository reaches.
A live PHP object has no PhpMixed counterpart, so the seam answers with the
entries the caller reads off it. The seam's own callers read those entries
instead of returning null and the empty string.
Two addLibrary calls also had replaces and provides swapped, dropping
`lib-libxslt replaces lib-xsl` and `lib-zip-libzip replaces lib-zip`.
`show --platform` now matches upstream Composer byte for byte, and all 59
provideLibraryTestCases datasets pass.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'scripts/bench/lib.sh')
0 files changed, 0 insertions, 0 deletions
