Closed tomekit closed 1 year ago
The issue was that I've manually adjusted the namespaces of generated files to fit my composer.json
settings. Once I've generated files and tweaked the composer.json
to use the generated structure and namespaces, issue no longer appears.
I've initially created this issue here (https://github.com/protocolbuffers/protobuf/issues/13540), but now realized that it's most likely PHP Protobuf related, so I am copying it over.
What did you do?
For a
madmin.proto
definition I've generated PHP files usingprotoc
andgrpc_php_plugin
. I've then tried to use the generated PHP files and send a GRPC request. This fails inside generated GPBMetadata class with:Failed to parse binary descriptor
wheninternalAddGeneratedFile
is called to parse some generated binary code.madmin.proto
I've generated PHP files:
and then tried to send a request:
Issue Code fails when:
new AddUserRequest()
constructor calls the:Madmin::initOnce();
and then subsequently:$pool->internalAddGeneratedFile
which fails with:Anything else we should know about your project / environment
Since Base64 encoded Madmin.php
Use e.g:
echo "<pasteBase64Here>" | base64 -d > /tmp/Madmin.php