We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to build a php cli version with intl but failed to used it I can build php with intl extension but I can run this simple file
// inlt.php <?php $fmt = new \NumberFormatter( locale_get_default(), \NumberFormatter::DECIMAL ); $result = $formatter->parse('100,01'); echo $result;
it throw an exception
> buildroot/bin/php intl.php Fatal error: Uncaught IntlException: Constructor failed in /Users/Canadadry/static-php-cli/intl.php:3 Stack trace: #0 /Users/Canadadry/static-php-cli/intl.php(3): NumberFormatter->__construct('fr_FR', 1) #1 {main} thrown in /Users/Canadadry/static-php-cli/intl.php on line 3
I am on a mac M1 any idea on what I missed ? Or what I should try, internet search suggest intl extension or icu library is not installed correctly.
Thank you for ready me.
Here a dockerfile to reproduce the error
FROM php:8.3-cli RUN apt-get update && \ apt-get install -y curl git unzip build-essential automake autoconf bison gawk texinfo && \ apt-get clean RUN git clone https://github.com/crazywhalecc/static-php-cli.git WORKDIR /static-php-cli RUN chmod +x bin/setup-runtime RUN bin/setup-runtime RUN bin/composer install RUN chmod +x bin/spc RUN bin/spc --version RUN bin/spc download --with-php=8.3 --for-extensions "intl" --prefer-pre-built RUN bin/spc doctor --auto-fix RUN bin/spc build --build-cli "intl" COPY intl.php intl.php CMD ["buildroot/bin/php", "intl.php"]
just run
docker build -t static-php-cli . docker run static-php-cli
The text was updated successfully, but these errors were encountered:
Caused by icu4c 75.1 build (missing binary tools for icu). This issue will be fixed in the next release of static-php-cli.
Sorry, something went wrong.
Remove redundant files and add tests for #504 bug
ea7c19e
ca6d5da
Thank you
Successfully merging a pull request may close this issue.
I tried to build a php cli version with intl but failed to used it
I can build php with intl extension but I can run this simple file
it throw an exception
I am on a mac M1 any idea on what I missed ? Or what I should try, internet search suggest intl extension or icu library is not installed correctly.
Thank you for ready me.
Here a dockerfile to reproduce the error
just run
docker build -t static-php-cli . docker run static-php-cli
The text was updated successfully, but these errors were encountered: