functions-framework-php
functions-framework-php copied to clipboard
FaaS (Function as a service) framework for writing portable PHP functions
Hey, Since I've updated my php version (`7.4.1` -> `7.4.30`) I am facing the following error : ```bash /usr/local/bin/docker-compose exec --user www-data middleware ./scripts/run.sh [Fri Jul 8 15:31:42 2022] PHP...
I'm having an issue with the PHP cloud function runtime ignoring custom memory values. I'm deploying my function with 1GB of memory: `gcloud functions deploy --runtime php74 \` `--region=us-central1 \`...
This is pretty user-unfriendly.... ```php function myPubSubEvent(CloudEvent $event) { $cloudEventData = $event->getData(); $pubSubData = $cloudEventData['message']['data']; if ($pubSubData) { $name = htmlspecialchars(base64_decode($pubSubData)); } } ``` It's so user-unfriendly that our [own...
Remove unused variables.
By default will come with `xdebug` or `pcov` : https://github.com/shivammathur/setup-php#signal_strength-coverage-support As we don't do any code coverage here, it is safe to disable coverage; this will also sensibly speed up...
Add missing `ext-json` extension.
Hey. Sorry for a long post. The short version is that I think we should consider leveraging the Symfony Runtime component. ---------- I do like the idea to run your...
As requested by @grayside in [this PR](https://github.com/GoogleCloudPlatform/php-docs-samples/pull/1260#discussion_r560416623).
### Current Behavior If an exception is thrown in developer code, the functions framework leaves it unhandled. https://github.com/GoogleCloudPlatform/functions-framework-php/blob/dba0a47f0fe0f2563d5475194108ec1bf1f4918a/src/CloudEventFunctionWrapper.php#L62-L63 Assuming nowhere else in the Function Framework catches the exception, this will...
Some of our client libraries (Firestore, Redis and Spanner) require the `grpc` PHP extension. Users have to include a `php.ini` file to enable the extension. Additionally many APIs (such as...