Skip to content

Incompatible signatures, cannot compile full #60

@andboson

Description

@andboson

class FileDescriptorProto extends \DrSlump\Protobuf\Message

function
https://github.com/drslump/Protobuf-PHP/blob/master/library/DrSlump/Protobuf/Message.php#L283

bun parent has parm:
https://github.com/drslump/Protobuf-PHP/blob/master/library/DrSlump/Protobuf/Message.php#L283

and:

/work/grpc/examples/php/route_guide (release-0_15_0*) $ protoc-gen-php -i . -o . ./route_guide.proto
Protobuf-PHP 1.0 by Ivan -DrSlump- Montes

PHP Warning: Declaration of google\protobuf\FileDescriptorProto::hasExtension() should be compatible with DrSlump\Protobuf\Message::hasExtension($extname) in /usr/share/php/DrSlump/Protobuf/Compiler/protos/descriptor.pb.php on line 111
PHP Stack trace:
PHP 1. {main}() /usr/bin/protoc-gen-php:0
PHP 2. DrSlump\Protobuf\Compiler\Cli::run() /usr/bin/protoc-gen-php:43
PHP 3. spl_autoload_call() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 4. DrSlump\Protobuf::DrSlump{closure}() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 5. include() /usr/share/php/DrSlump/Protobuf.php:58
PHP 6. require_once() /usr/share/php/DrSlump/Protobuf/Compiler.php:6
PHP Warning: Declaration of google\protobuf\FileDescriptorProto::getExtension($idx = NULL) should be compatible with DrSlump\Protobuf\Message::getExtension($extname, $idx = NULL) in /usr/share/php/DrSlump/Protobuf/Compiler/protos/descriptor.pb.php on line 111
PHP Stack trace:
PHP 1. {main}() /usr/bin/protoc-gen-php:0
PHP 2. DrSlump\Protobuf\Compiler\Cli::run() /usr/bin/protoc-gen-php:43
PHP 3. spl_autoload_call() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 4. DrSlump\Protobuf::DrSlump{closure}() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 5. include() /usr/share/php/DrSlump/Protobuf.php:58
PHP 6. require_once() /usr/share/php/DrSlump/Protobuf/Compiler.php:6
PHP Warning: Declaration of google\protobuf\FileDescriptorProto::getExtensionList() should be compatible with DrSlump\Protobuf\Message::getExtensionList($extname) in /usr/share/php/DrSlump/Protobuf/Compiler/protos/descriptor.pb.php on line 111
PHP Stack trace:
PHP 1. {main}() /usr/bin/protoc-gen-php:0
PHP 2. DrSlump\Protobuf\Compiler\Cli::run() /usr/bin/protoc-gen-php:43
PHP 3. spl_autoload_call() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 4. DrSlump\Protobuf::DrSlump{closure}() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 5. include() /usr/share/php/DrSlump/Protobuf.php:58
PHP 6. require_once() /usr/share/php/DrSlump/Protobuf/Compiler.php:6
PHP Warning: Declaration of google\protobuf\FileDescriptorProto::setExtension(google\protobuf\FieldDescriptorProto $value, $idx = NULL) should be compatible with DrSlump\Protobuf\Message::setExtension($extname, $value, $idx = NULL) in /usr/share/php/DrSlump/Protobuf/Compiler/protos/descriptor.pb.php on line 111
PHP Stack trace:
PHP 1. {main}() /usr/bin/protoc-gen-php:0
PHP 2. DrSlump\Protobuf\Compiler\Cli::run() /usr/bin/protoc-gen-php:43
PHP 3. spl_autoload_call() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 4. DrSlump\Protobuf::DrSlump{closure}() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 5. include() /usr/share/php/DrSlump/Protobuf.php:58
PHP 6. require_once() /usr/share/php/DrSlump/Protobuf/Compiler.php:6
PHP Warning: Declaration of google\protobuf\FileDescriptorProto::addExtension(google\protobuf\FieldDescriptorProto $value) should be compatible with DrSlump\Protobuf\Message::addExtension($extname, $value) in /usr/share/php/DrSlump/Protobuf/Compiler/protos/descriptor.pb.php on line 111
PHP Stack trace:
PHP 1. {main}() /usr/bin/protoc-gen-php:0
PHP 2. DrSlump\Protobuf\Compiler\Cli::run() /usr/bin/protoc-gen-php:43
PHP 3. spl_autoload_call() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 4. DrSlump\Protobuf::DrSlump{closure}() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 5. include() /usr/share/php/DrSlump/Protobuf.php:58
PHP 6. require_once() /usr/share/php/DrSlump/Protobuf/Compiler.php:6
PHP Warning: Declaration of google\protobuf\FileDescriptorProto::clearExtension() should be compatible with DrSlump\Protobuf\Message::clearExtension($extname) in /usr/share/php/DrSlump/Protobuf/Compiler/protos/descriptor.pb.php on line 111
PHP Stack trace:
PHP 1. {main}() /usr/bin/protoc-gen-php:0
PHP 2. DrSlump\Protobuf\Compiler\Cli::run() /usr/bin/protoc-gen-php:43
PHP 3. spl_autoload_call() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 4. DrSlump\Protobuf::DrSlump{closure}() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 5. include() /usr/share/php/DrSlump/Protobuf.php:58
PHP 6. require_once() /usr/share/php/DrSlump/Protobuf/Compiler.php:6
PHP Warning: Declaration of google\protobuf\DescriptorProto::hasExtension() should be compatible with DrSlump\Protobuf\Message::hasExtension($extname) in /usr/share/php/DrSlump/Protobuf/Compiler/protos/descriptor.pb.php on line 688
PHP Stack trace:
PHP 1. {main}() /usr/bin/protoc-gen-php:0
PHP 2. DrSlump\Protobuf\Compiler\Cli::run() /usr/bin/protoc-gen-php:43
PHP 3. spl_autoload_call() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 4. DrSlump\Protobuf::DrSlump{closure}() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 5. include() /usr/share/php/DrSlump/Protobuf.php:58
PHP 6. require_once() /usr/share/php/DrSlump/Protobuf/Compiler.php:6
PHP Warning: Declaration of google\protobuf\DescriptorProto::getExtension($idx = NULL) should be compatible with DrSlump\Protobuf\Message::getExtension($extname, $idx = NULL) in /usr/share/php/DrSlump/Protobuf/Compiler/protos/descriptor.pb.php on line 688
PHP Stack trace:
PHP 1. {main}() /usr/bin/protoc-gen-php:0
PHP 2. DrSlump\Protobuf\Compiler\Cli::run() /usr/bin/protoc-gen-php:43
PHP 3. spl_autoload_call() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 4. DrSlump\Protobuf::DrSlump{closure}() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 5. include() /usr/share/php/DrSlump/Protobuf.php:58
PHP 6. require_once() /usr/share/php/DrSlump/Protobuf/Compiler.php:6
PHP Warning: Declaration of google\protobuf\DescriptorProto::getExtensionList() should be compatible with DrSlump\Protobuf\Message::getExtensionList($extname) in /usr/share/php/DrSlump/Protobuf/Compiler/protos/descriptor.pb.php on line 688
PHP Stack trace:
PHP 1. {main}() /usr/bin/protoc-gen-php:0
PHP 2. DrSlump\Protobuf\Compiler\Cli::run() /usr/bin/protoc-gen-php:43
PHP 3. spl_autoload_call() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 4. DrSlump\Protobuf::DrSlump{closure}() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 5. include() /usr/share/php/DrSlump/Protobuf.php:58
PHP 6. require_once() /usr/share/php/DrSlump/Protobuf/Compiler.php:6
PHP Warning: Declaration of google\protobuf\DescriptorProto::setExtension(google\protobuf\FieldDescriptorProto $value, $idx = NULL) should be compatible with DrSlump\Protobuf\Message::setExtension($extname, $value, $idx = NULL) in /usr/share/php/DrSlump/Protobuf/Compiler/protos/descriptor.pb.php on line 688
PHP Stack trace:
PHP 1. {main}() /usr/bin/protoc-gen-php:0
PHP 2. DrSlump\Protobuf\Compiler\Cli::run() /usr/bin/protoc-gen-php:43
PHP 3. spl_autoload_call() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 4. DrSlump\Protobuf::DrSlump{closure}() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 5. include() /usr/share/php/DrSlump/Protobuf.php:58
PHP 6. require_once() /usr/share/php/DrSlump/Protobuf/Compiler.php:6
PHP Warning: Declaration of google\protobuf\DescriptorProto::addExtension(google\protobuf\FieldDescriptorProto $value) should be compatible with DrSlump\Protobuf\Message::addExtension($extname, $value) in /usr/share/php/DrSlump/Protobuf/Compiler/protos/descriptor.pb.php on line 688
PHP Stack trace:
PHP 1. {main}() /usr/bin/protoc-gen-php:0
PHP 2. DrSlump\Protobuf\Compiler\Cli::run() /usr/bin/protoc-gen-php:43
PHP 3. spl_autoload_call() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 4. DrSlump\Protobuf::DrSlump{closure}() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 5. include() /usr/share/php/DrSlump/Protobuf.php:58
PHP 6. require_once() /usr/share/php/DrSlump/Protobuf/Compiler.php:6
PHP Warning: Declaration of google\protobuf\DescriptorProto::clearExtension() should be compatible with DrSlump\Protobuf\Message::clearExtension($extname) in /usr/share/php/DrSlump/Protobuf/Compiler/protos/descriptor.pb.php on line 688
PHP Stack trace:
PHP 1. {main}() /usr/bin/protoc-gen-php:0
PHP 2. DrSlump\Protobuf\Compiler\Cli::run() /usr/bin/protoc-gen-php:43
PHP 3. spl_autoload_call() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 4. DrSlump\Protobuf::DrSlump{closure}() /usr/share/php/DrSlump/Protobuf/Compiler/Cli.php:54
PHP 5. include() /usr/share/php/DrSlump/Protobuf.php:58
PHP 6. require_once() /usr/share/php/DrSlump/Protobuf/Compiler.php:6

So, route_guide.php not contains client code (RouteGuideClient class)
What is wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions