Coder Social home page Coder Social logo

Request for extension `bcmath` about bref HOT 3 CLOSED

brefphp avatar brefphp commented on June 23, 2024
Request for extension `bcmath`

from bref.

Comments (3)

mnapoli avatar mnapoli commented on June 23, 2024

You can send a pull request on the Dockerfile that is used to build the binary and the extensions: https://github.com/mnapoli/bref/blob/master/bin/php/Dockerfile#L36

If it's installed through pecl there is a pecl install line below line 36.

from bref.

oppiansteve avatar oppiansteve commented on June 23, 2024

It looks like I just need to add the flag --enable-bcmath then do the same for the extension bcmath as you do for intl. (And update the README.md).

I'll just duplicate the extension build script segment of instructions for now, as I'm not sure of the most efficient way to do the same RUN commands but over a list of different WORKDIRs (without killing the layer caching?). (Bit new to this). Unless you have a better way to do that.

Just testing this now (over very slow wifi in a Starbucks in Hamburg).

from bref.

mnapoli avatar mnapoli commented on June 23, 2024

We defined a list of pre-installed extensions for v0.3 (see https://bref.sh/docs/environment/php.html), bcmath isn't built by default.

If you want to use it you will have to compile it yourself in your lambda and enable it with a php.ini (https://bref.sh/docs/environment/php.html should explain a bit more).

I'll close this issue for now.

from bref.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.