-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to pass command line arguments #591
Comments
Composer should not be combined with micro sapi, it's not supported. But if you want to achieve this, you need to build micro sapi with |
@crazywhalecc I think this problem is not something I should consider for the time being. The problem I am facing now is that the command parameters used at runtime cannot be read in |
@crazywhalecc However, |
What's your |
emm... Thank you, I configured |
Nevermind. The real problem is indeed composer does not support micro SAPI, you need to make micro pretend to be cli SAPI and run it. |
@crazywhalecc You can provide the composer with a
|
./spc build --build-micro "filter,iconv,mbstring,phar,tokenizer,zlib" --enable-zts --with-upx-pack
bin/spc micro:combine composer.phar --with-micro=bin/micro.sfx -N php.ini -O composer
error:
./bin/composer install
Warning: Undefined array key "argv" in phar:///bin/composer/bin/composer on line 94
Warning: Trying to access array offset on null in phar:///bin/composer on line 94
Deprecated: realpath(): Passing null to parameter #1 ($path) of type string is deprecated in phar:///bin/composer/bin/composer on line 94
The text was updated successfully, but these errors were encountered: