PHP functions and PHP-executed processes have different working directories #1279
Labels
[Aspect] Node.js
[Feature] PHP.wasm
[Priority] Medium
[Type] Bug
An existing feature does not function as intended
[Type] Developer Experience
[Type] UI / UX / User Experience
Milestone
PHP's working directory is currently not the same as the working directory of processes executed by PHP.
Given the following code:
php-wasm outputs something like:
As a php-wasm user, I would expect the working directory to be the same between the two.
Possible fix
@adamziel mentioned that we might restrict use of PHP's process execution functions unless the useHostFilesystem() method is called to mount the host filesystem and set the current working directory to the one used by the current node.js process. (Based on this conversation in WordPress.org Slack.)
The text was updated successfully, but these errors were encountered: