Skip to content
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

Open
wheakerd opened this issue Jan 26, 2025 · 1 comment
Open

Unable to pass command line arguments #591

wheakerd opened this issue Jan 26, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@wheakerd
Copy link

./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

@crazywhalecc crazywhalecc added the bug Something isn't working label Jan 27, 2025
@crazywhalecc
Copy link
Owner

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 --with-micro-fake-cli option and re-combine the latest composer.phar with openssl, curl extension. Even after that, some composer functions are still unavailable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants