-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
PHP - bcmath extension is required, but not typically installed by default #4465
Comments
I'll add a requirement for bcmath |
Using c extension should not meet this problem. |
I am thinking whether reporting an error will be more reasonable. Some users are using c extension and others may not use mergeFromJsonString. For these uses, bcmath is not needed. |
@TeBoring that sounds fair and would be better than just a hard to trace segfault. |
@TeBoring friendly ping :) - is this something still on the radar? This issue can be confusing to our users. |
I've just run into this problem with bcmath extension not being installed.
I can see that it was a suggestion but it feels like the extension is required.
|
I also ran into this issue when testing out the
I've updated the documentation there to include a note about this, but curious if there's been any reconsideration of whether we can just include the |
This is a pretty annoying issue if you're trying to setup secrets on the google cloud. The docs don't mention any of this. |
We just ran into this using google secrets in google run |
Documented in #10490 |
Certain bundles come with the bcmath extension, but it is not always included by default. It would be great if we either forced a requirement on this extension in the
composer.json
, or ideally had a fallback for the case where it is not installed.An error is triggered with calls to
Google\Protobuf\Internal\Message::mergeFromJsonString()
(due to bccomp calls), and when using the protobuf C extension a segfault is triggered - making tracing the issue extremely difficult.This was surfaced from a user reported issue at googleapis/google-cloud-php#950.
The text was updated successfully, but these errors were encountered: