aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/console/application.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-06 20:38:19 +0900
committernsfisis <nsfisis@gmail.com>2026-08-06 20:38:19 +0900
commit91e7102d02cfcda0bf1b82ae1b3fb30900495360 (patch)
tree36be9051ad3a0a12c72ec4ab2afb2359b8983c65 /crates/shirabe/src/console/application.rs
parenta7bd624b3e9d4e9493435be1e6016303830e7087 (diff)
downloadphp-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 'crates/shirabe/src/console/application.rs')
-rw-r--r--crates/shirabe/src/console/application.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/shirabe/src/console/application.rs b/crates/shirabe/src/console/application.rs
index d6a287c2..4136a830 100644
--- a/crates/shirabe/src/console/application.rs
+++ b/crates/shirabe/src/console/application.rs
@@ -2466,10 +2466,6 @@ impl ApplicationHandle {
// recognizes user classes, so the arm stays
// unreachable until the checks and the instantiation
// go through the worker.
- let _ = shirabe_php_shim::instantiate_class(
- &dummy_str,
- vec![PhpMixed::String(script.clone())],
- );
todo!(
"plugin: import a user Command class as a live application command"
);