After upgrading my project from PHP 8.3 to PHP 8.4, I started getting the following error:
Maximum call stack size of 8339456 bytes (zend.max_allowed_stack_size – zend.reserved_stack_size) reached. Infinite recursion?
This happens when trying to sync data with Google Cloud Logging through gRPC.
Here is a snippet of the stack trace:
/workspace/vendor/google/gax/src/CredentialsWrapper.php:244
/workspace/vendor/grpc/grpc/src/lib/UnaryCall.php:45
/workspace/vendor/grpc/grpc/src/lib/BaseStub.php:295
/workspace/vendor/google/gax/src/Transport/GrpcTransport.php:267
...
/workspace/vendor/monolog/monolog/src/Monolog/Logger.php:391
/workspace/vendor/laravel/framework/src/Illuminate/Log/Logger.php:183
Environment:
Laravel project
Google Cloud Logging SDK (google/gax, google/cloud-logging),
gRPC extension enabled,
Works fine with PHP 8.3, only fails on PHP 8.4,
Question:
Has anyone encountered this issue after upgrading to PHP 8.4?
Is this a known incompatibility between PHP 8.4 and gRPC/Google Cloud libraries?
Any workaround or configuration change (e.g., zend.max_allowed_stack_size) that helps, or should I downgrade back to PHP 8.3 until support is fixed?