Skip to content

PHP Fatal error: Unable to load descriptor: type mismatch when resolving  #14376

@bshaffer

Description

@bshaffer

We are receiving the following error in PHP 7.4 when the protobuf c-extension is enabled:

PHP Fatal error:  Unable to load descriptor: type mismatch when resolving google.shopping.merchant.reports.v1beta.ProductPerformanceView.destination: couldn't find name .g
 in /home/runner/work/google-cloud-php/google-cloud-php/ShoppingMerchantReports/metadata/V1Beta/Reports.php on line 465

See our failing job at https://github.com/googleapis/google-cloud-php/actions/runs/6499416650/job/17652727560?pr=6705#step:8:323

Does this have to do with the fact that the C-extension no longer supports 7.4, and the protos in question are implementing something not supported in the previous version?

Here is the proto in question, which doesn't seem to have changed significantly, so I'm stumped.

This works in other versions of PHP which use the protobuf native PHP library. I have not tested this using PHP 8.0 and the protobuf C-extension, but I will.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions