You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our CMS, Statamic, we use Composer within our admin panel to allow users to update via the browser.
We use Symfony Process to execute Composer commands using whatever composer binary is in the vendor directory.
When running Composer 2.3 (and composer/pcre 3) to perform a composer require, it fails with the following stack trace.
The actual command being run behind the scenes is:
In our CMS, Statamic, we use Composer within our admin panel to allow users to update via the browser.
We use Symfony Process to execute Composer commands using whatever composer binary is in the vendor directory.
When running Composer 2.3 (and composer/pcre 3) to perform a
composer require
, it fails with the following stack trace.The actual command being run behind the scenes is:
The issue appears to be that
Platform::getEnv('PATH')
returnsfalse
in the browser (or at least in our implementation).(On the command line, it gets the
PATH
just fine.)Since adding the
string
typehint toPreg::isMatch()
in this commit it now fails becausefalse
is being passed in.Previously, I guess it would silently fail? I'm not sure what
ensureBinDirIsInPath
was attempting to do, but everything seemed fine before.Please let me know what other information I can provide. Thanks!
The text was updated successfully, but these errors were encountered: