diff options
Diffstat (limited to 'crates/shirabe/src/main.rs')
| -rw-r--r-- | crates/shirabe/src/main.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/shirabe/src/main.rs b/crates/shirabe/src/main.rs index 2ae6d903..6eb8e4cb 100644 --- a/crates/shirabe/src/main.rs +++ b/crates/shirabe/src/main.rs @@ -3,6 +3,13 @@ use shirabe_php_shim::{PHP_ENV, PHP_SERVER}; fn main() { + // TODO(phase-c): PHP: `$xdebug = new XdebugHandler('Composer'); $xdebug->check(); unset($xdebug);` + // (restart the process without Xdebug loaded, for performance) is not ported. Since no + // XdebugHandler is ever constructed, `self::$name` never gets set, so the + // COMPOSER_ORIGINAL_INIS-env-var branch of XdebugHandler::getAllIniFiles() (see + // shirabe-external-packages' xdebug_handler.rs and shirabe/src/util/ini_helper.rs) is + // unreachable in this port, not merely unexercised by current tests. + // Take the $_ENV / $_SERVER snapshots before any putenv() mutates the real environment. // See `docs/dev/env-vars-porting.md` for details. std::sync::LazyLock::force(&PHP_ENV); |
