Skip to content

segmentation fault if passed invalid data, when ProtocolBuffers::decode is called #49

@brtriver

Description

@brtriver

if empty data is passed ...

ProtocolBuffers::decode('Test\Sample', '');

PHP Fatal error:  Uncaught exception 'ProtocolBuffersInvalidProtocolBufferException' with message 'passed variable seems null' in ...

but like this with invalid data ...

ProtocolBuffers::decode('Test\Sample', 1);

[1]    10767 segmentation fault

Is it not supported to throw exception when invalid data is passed now?

  • PHP 5.4.31
  • php-protocolbuffers 747a223

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