PHP Protobuf - Google's Protocol Buffers for PHP

Overview

This repository is no longer maintained

Since Google's official Protocol Buffers supports PHP language, it's unjustifiable to maintain this project. Please refer to Protocol Buffers for PHP language support.

PHP Protobuf - Google's Protocol Buffers for PHP

Overview

Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. It might be used in file formats and RPC protocols.

PHP Protobuf is Google's Protocol Buffers implementation for PHP with a goal to provide high performance, including a protoc plugin to generate PHP classes from .proto files. The heavy-lifting (a parsing and a serialization) is done by a PHP extension.

Requirements

  • PHP 7.0 or above (for PHP 5 support refer to php5 branch)
  • Pear's Console_CommandLine (for the protoc plugin)
  • Google's protoc compiler version 2.6 or above

Getting started

Installation

  1. Clone the source code

    git clone https://github.com/allegro/php-protobuf
    
  2. Go to the source code directory

    cd php-protobuf
    
  3. Build and install the PHP extension (follow instructions at php.net)

  4. Install protoc plugin dependencies

    composer install
    

Usage

  1. Assume you have a file foo.proto

    message Foo
    {
        required int32 bar = 1;
        optional string baz = 2;
        repeated float spam = 3;
    }
    
  2. Compile foo.proto

    php protoc-gen-php.php foo.proto
    
  3. Create Foo message and populate it with some data

    require_once 'Foo.php';
    
    $foo = new Foo();
    $foo->setBar(1);
    $foo->setBaz('two');
    $foo->appendSpam(3.0);
    $foo->appendSpam(4.0);
  4. Serialize a message to a string

    $packed = $foo->serializeToString();
  5. Parse a message from a string

    $parsedFoo = new Foo();
    try {
        $parsedFoo->parseFromString($packed);
    } catch (Exception $ex) {
        die('Oops.. there is a bug in this example, ' . $ex->getMessage());
    }
  6. Let's see what we parsed out

    $parsedFoo->dump();

    It should produce output similar to the following:

    Foo {
      1: bar => 1
      2: baz => 'two'
      3: spam(2) =>
        [0] => 3
        [1] => 4
    }
    
  7. If you would like you can reset an object to its initial state

    $parsedFoo->reset();

Guide

Compilation

PHP Protobuf comes with Google's protoc compiler plugin. You can run in directly:

php protoc-gen-php.php -o output_dir foo.proto

or pass it to the protoc:

protoc --plugin=protoc-gen-allegrophp=protoc-gen-php.php --allegrophp_out=output_dir foo.proto

On Windows use protoc-gen-php.bat instead.

Command line options

  • -o out, --out=out - the destination directory for generated files (defaults to the current directory).
  • -I proto_path, --proto_path=proto_path - the directory in which to search for imports.
  • --protoc=protoc - the protoc compiler executable path.
  • -D define, --define=define - define a generator option (i.e. -Dnamespace='Foo\Bar\Baz').

Generator options

  • namespace - the namespace to be used by the generated PHP classes.

Message class

The classes generated during the compilation are PSR-0 compliant (each class is put into it's own file). If namespace generator option is not defined then a package name (if present) is used to create a namespace. If the package name is not set then a class is put into global space.

PHP Protobuf module implements ProtobufMessage class which encapsulates the protocol logic. A message compiled from a proto file extends this class providing message field descriptors. Based on these descriptors ProtobufMessage knows how to parse and serialize a message of a given type.

For each field a set of accessors is generated. The set of methods is different for single value fields (required / optional) and multi-value fields (repeated).

  • required / optional

      get{FIELD}()        // return a field value
      has{FIELD}()        // check whether a field is set
      set{FIELD}($value)  // set a field value to $value
    
  • repeated

      append{FIELD}($value)       // append $value to a field
      clear{FIELD}()              // empty field
      get{FIELD}()                // return an array of field values
      getAt{FIELD}($index)        // return a field value at $index index
      getCount{FIELD}()           // return a number of field values
      has{FIELD}()                // check whether a field is set
      getIterator{FIELD}()        // return an ArrayIterator
    

{FIELD} is a camel cased field name.

Enum

PHP does not natively support enum type. Hence enum is represented by the PHP integer type. For convenience enum is compiled to a class with set of constants corresponding to its possible values.

Type mapping

The range of available build-in PHP types poses some limitations. PHP does not support 64-bit positive integer type. Note that parsing big integer values might result in getting unexpected results.

Protocol Buffers types map to PHP types as follows (x86_64):

| Protocol Buffers | PHP    |
| ---------------- | ------ |
| double           | float  |
| float            |        |
| ---------------- | ------ |
| int32            | int    |
| int64            |        |
| uint32           |        |
| uint64           |        |
| sint32           |        |
| sint64           |        |
| fixed32          |        |
| fixed64          |        |
| sfixed32         |        |
| sfixed64         |        |
| ---------------- | ------ |
| bool             | bool   |
| ---------------- | ------ |
| string           | string |
| bytes            |        |

Protocol Buffers types map to PHP types as follows (x86):

| Protocol Buffers | PHP                         |
| ---------------- | --------------------------- |
| double           | float                       |
| float            |                             |
| ---------------- | --------------------------- |
| int32            | int                         |
| uint32           |                             |
| sint32           |                             |
| fixed32          |                             |
| sfixed32         |                             |
| ---------------- | --------------------------- |
| int64            | if val <= PHP_INT_MAX       |
| uint64           | then value is stored as int |
| sint64           | otherwise as double         |
| fixed64          |                             |
| sfixed64         |                             |
| ---------------- | --------------------------- |
| bool             | bool                        |
| ---------------- | --------------------------- |
| string           | string                      |
| bytes            |                             |

Not set value is represented by null type. To unset value just set its value to null.

Parsing

To parse message create a message class instance and call its parseFromString method passing it a serialized message. The errors encountered are signaled by throwing Exception. Exception message provides detailed explanation. Required fields not set are silently ignored.

$packed = /* serialized FooMessage */;
$foo = new FooMessage();

try {
    $foo->parseFromString($packed);
} catch (Exception $ex) {
    die('Parse error: ' . $e->getMessage());
}

$foo->dump(); // see what you got

Serialization

To serialize a message call serializeToString method. It returns a string containing protobuf-encoded message. The errors encountered are signaled by throwing Exception. Exception message provides detailed explanation. A required field not set triggers an error.

$foo = new FooMessage()
$foo->setBar(1);

try {
    $packed = $foo->serializeToString();
} catch (Exception $ex) {
    die 'Serialize error: ' . $e->getMessage();
}

/* do some cool stuff with protobuf-encoded $packed */

Debugging

There might be situations you need to investigate what an actual content of a given message is. What var_dump gives on a message instance is somewhat obscure.

The ProtobufMessage class comes with dump method which prints out a message content to the standard output. It takes one optional argument specifying whether you want to dump only set fields (by default it dumps only set fields). Pass false as an argument to dump all fields. Format it produces is similar to var_dump.

Alternatively you can use printDebugString() method which produces output in protocol buffers text format.

IDE Helper and Auto-Complete Support

To integrate this extension with your IDE (PhpStorm, Eclipse etc.) and get auto-complete support, simply include stubs\ProtobufMessage.php anywhere under your project root.

Known issues

References

Acknowledgments

Comments
  • Php7

    Php7

    Implemented php7 support. It has no backward compatibility so you can keep it a as separate branch. But I think its better to create php5 branch from current master and merge these changes into master.

    opened by serggp 31
  • proto3 default

    proto3 default

    Accodring to https://developers.google.com/protocol-buffers/docs/proto3#default

    When a message is parsed, if the encoded message does not contain a particular singular element, the corresponding field in the parsed object is set to the default value for that field. These defaults are type-specific:

    For strings, the default value is the empty string.
    For bytes, the default value is empty bytes.
    For bools, the default value is false.
    For numeric types, the default value is zero.
    For enums, the default value is the first defined enum value, which must be 0.
    For message fields, the field is not set. Its exact value is langauge-dependent. See the generated code guide for details. 
    

    But in php-protobuf the default value is null , now I have problem with enums Why the default value of enum in php-protobuf is null when google told it must be 0 ?

    bug 
    opened by sm2017 19
  • How to install php-protobuf  in xamp (Window) .

    How to install php-protobuf in xamp (Window) .

    Hi please help me i want to install php-protobuf in xamp on window.but i have no idea how it will be installed .when i run protoc-php.php its show "requires protobuf extension installed to run". how can i install this extension ??

    Thanks

    opened by PunitSaharan 18
  • .proto2 - Files instead of .proto3

    .proto2 - Files instead of .proto3

    Hello,

    I want to Create some php classes with .proto - Files of the Version 2, but php-protobuf only works with Version 3 Files. Is there a workaround to work with .proto 2 Files?

    opened by Booser47 15
  • Big Number Error

    Big Number Error

    I have a big Number (2069643420177269543) which will not be displayed correct. After a "parseFromString", I only get the Number 807..

    Some Ideas why?

    opened by Booser47 13
  • --allegrophp_out: protoc-gen-allegrophp: Plugin failed with status code 127.

    --allegrophp_out: protoc-gen-allegrophp: Plugin failed with status code 127.

    i run php protoc-gen-php.php foo.proto

    get this error

    /data/www/php-protobuf # php protoc-gen-php.php foo.proto
    ': No such file or directory
    --allegrophp_out: protoc-gen-allegrophp: Plugin failed with status code 127.
    ERROR: protoc exited with an exit status 1 when executed with:
      protoc \
        --plugin=protoc-gen-allegrophp='/data/www/php-protobuf/protoc-gen-php.php' \
        --allegrophp_out=':./' \
        'foo.proto'
    

    i have installed protoc and protocbuf module

    /data/www/php-protobuf # protoc --version
    libprotoc 2.6.1
    
    /data/www/php-protobuf # php -m | grep protobuf
    protobuf
    

    anyone know what should i do to solve the problem?thanks!

    opened by Darkgel 10
  • how to deep copy a message object to another message object

    how to deep copy a message object to another message object

    python have the CopyFrom method to copy all the values from another message of the same type as bar. but php assign a object to another object is not deep copy, and php-protobuf have the set{fieldname} function is also not deep copy.

    So How to how to deep copy a message object to another message object

    enhancement 
    opened by crazier 10
  • Problem with nested messages

    Problem with nested messages

    Hi,

    How to use nested messages? For example i have the following proto:

    message Foo
    {
        required int32 bar = 1;
        optional string baz = 2;
        repeated float spam = 3;
    
        message Sub
        {
            optional int64 id = 1;
            optional int32 age_sec = 2;
        }
    }
    
    

    Using protoc-gen-php.php makes two php Files: Foo.php and Foo_Sub.php And Foo.php has no mention of sub anywhere. How to deal with this?

    question 
    opened by swapniel99 9
  • fix 1.crash of print_field_value 2. parsing message with empty field members

    fix 1.crash of print_field_value 2. parsing message with empty field members

    protobuf.c 813 static int pb_print_field_value(zval *value, zend_long level, zend_bool only_set) 814 { 815 const char *string_value; 816 zval tmp; //... 835 836 zval_dtor(&tmp); //it will be crashed if value is null, true and false... 837 838 return 0; 839 }

    //for the null value, we continue to print instead of fail // change: if ((values = pb_get_values(getThis())) == NULL) goto fail0;

    to: values = pb_get_values(getThis());

    opened by aerror2 8
  • recipe for target 'protobuf.lo' failed

    recipe for target 'protobuf.lo' failed

    Makefile:193: recipe for target 'protobuf.lo' failed
    make: *** [protobuf.lo] Error 1
    
    

    Dear members! I am getting this error when I am using:

    1. PHP 5.6
    2. PHP7.0 Both options leads to this error. I've already spent 4 days struggling on this issue, any help would be very appreciated.

    Thanks!!!

    opened by LeVadim 8
  • make: *** [protobuf.lo] Error 1

    make: *** [protobuf.lo] Error 1

    Server configuration:- PHP 5.6.36 (cli) (built: Apr 25 2018 10:11:47) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

    Getting this issue while running make commend:- /bin/sh /var/www/rd1_24_11/whatsapp/php-protobuf/libtool --mode=compile cc -I. -I/var/www/rd1_24_11/whatsapp/php-protobuf -DPHP_ATOM_INC -I/var/www/rd1_24_11/whatsapp/php-protobuf/include -I/var/www/rd1_24_11/whatsapp/php-protobuf/main -I/var/www/rd1_24_11/whatsapp/php-protobuf -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c -o protobuf.lo libtool: compile: cc -I. -I/var/www/rd1_24_11/whatsapp/php-protobuf -DPHP_ATOM_INC -I/var/www/rd1_24_11/whatsapp/php-protobuf/include -I/var/www/rd1_24_11/whatsapp/php-protobuf/main -I/var/www/rd1_24_11/whatsapp/php-protobuf -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c -fPIC -DPIC -o .libs/protobuf.o /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:19:1: warning: "IS_BOOL" redefined In file included from /usr/include/php/main/php.h:35, from /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1: /usr/include/php/Zend/zend.h:586:1: warning: this is the location of the previous definition /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:73: error: expected declaration specifiers or ‘...’ before ‘zend_long’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:74: error: expected declaration specifiers or ‘...’ before ‘zend_long’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:75: error: expected declaration specifiers or ‘...’ before ‘zend_long’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:85: error: expected declaration specifiers or ‘...’ before ‘zend_long’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:87: error: expected declaration specifiers or ‘...’ before ‘zend_long’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage___construct’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:96: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_append’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:101: error: ‘zend_long’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:101: error: (Each undeclared identifier is reported only once /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:101: error: for each function it appears in.) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:101: error: expected ‘;’ before ‘field_number’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:104: error: ‘field_number’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_clear’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:127: error: ‘zend_long’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:127: error: expected ‘;’ before ‘field_number’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:130: error: ‘field_number’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_printDebugString’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:154: error: ‘zend_long’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:154: error: expected ‘;’ before ‘level’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:160: error: ‘level’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:178: warning: passing argument 3 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:179: note: expected ‘uint *’ but argument is of type ‘zend_ulong *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:178: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:179: note: expected ‘ulong *’ but argument is of type ‘struct Bucket **’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:178: error: too few arguments to function ‘zend_hash_get_current_key_ex’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:179: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:182: note: expected ‘void **’ but argument is of type ‘struct Bucket **’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:179: error: too few arguments to function ‘zend_hash_get_current_data_ex’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:198: warning: passing argument 3 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:179: note: expected ‘uint *’ but argument is of type ‘zend_ulong *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:198: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:179: note: expected ‘ulong *’ but argument is of type ‘struct Bucket **’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:198: error: too few arguments to function ‘zend_hash_get_current_key_ex’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:199: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:182: note: expected ‘void **’ but argument is of type ‘struct Bucket **’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:199: error: too few arguments to function ‘zend_hash_get_current_data_ex’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:206: error: too many arguments to function ‘pb_print_debug_field_value’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:213: error: too many arguments to function ‘pb_print_debug_field_value’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:221: error: too many arguments to function ‘pb_print_debug_field_value’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:226: error: too many arguments to function ‘pb_print_debug_field_value’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:231: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_dump’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:237: error: ‘zend_long’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:237: error: expected ‘;’ before ‘level’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:243: error: ‘level’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:259: warning: passing argument 3 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:179: note: expected ‘uint *’ but argument is of type ‘zend_ulong *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:259: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:179: note: expected ‘ulong *’ but argument is of type ‘struct Bucket **’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:259: error: too few arguments to function ‘zend_hash_get_current_key_ex’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:260: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:182: note: expected ‘void **’ but argument is of type ‘struct Bucket **’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:260: error: too few arguments to function ‘zend_hash_get_current_data_ex’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:273: warning: passing argument 3 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:179: note: expected ‘uint *’ but argument is of type ‘zend_ulong *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:273: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:179: note: expected ‘ulong *’ but argument is of type ‘struct Bucket **’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:273: error: too few arguments to function ‘zend_hash_get_current_key_ex’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:274: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:182: note: expected ‘void **’ but argument is of type ‘struct Bucket **’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:274: error: too few arguments to function ‘zend_hash_get_current_data_ex’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:278: error: too many arguments to function ‘pb_dump_field_value’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:287: error: too many arguments to function ‘pb_dump_field_value’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:298: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval ’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_count’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:303: error: ‘zend_long’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:303: error: expected ‘;’ before ‘field_number’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:306: error: ‘field_number’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_get’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:326: error: ‘zend_long’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:326: error: expected ‘;’ before ‘field_number’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:329: error: ‘field_number’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:339: warning: comparison between pointer and integer /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:345: warning: passing argument 2 of ‘zend_hash_index_find’ makes integer from pointer without a cast /usr/include/php/Zend/zend_hash.h:166: note: expected ‘ulong’ but argument is of type ‘char * ()(const char *, int)’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:345: error: too few arguments to function ‘zend_hash_index_find’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:373:66: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_parseFromString’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:373: error: ‘ZVAL_STRINGL’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:375: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type /usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:376: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:380: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:381: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:396: error: too few arguments to function ‘zend_hash_index_find’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:442: warning: passing argument 1 of ‘zend_lookup_class_ex’ makes pointer from integer without a cast /usr/include/php/Zend/zend_execute.h:65: note: expected ‘const char *’ but argument is of type ‘int’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:442: warning: passing argument 2 of ‘zend_lookup_class_ex’ makes integer from pointer without a cast /usr/include/php/Zend/zend_execute.h:65: note: expected ‘int’ but argument is of type ‘void *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:442: warning: passing argument 3 of ‘zend_lookup_class_ex’ makes pointer from integer without a cast /usr/include/php/Zend/zend_execute.h:65: note: expected ‘const struct zend_literal *’ but argument is of type ‘int’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:442: error: too few arguments to function ‘zend_lookup_class_ex’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:450:91: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:452: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type /usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:453: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:457: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:458: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:460:93: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:461:45: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:464: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type /usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:464: warning: passing argument 6 of ‘call_user_function’ from incompatible pointer type /usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:465: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:469: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:470: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:472: error: ‘IS_TRUE’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:472: error: ‘IS_FALSE’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:473: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:489: warning: passing argument 4 of ‘pb_parse_field_value’ makes pointer from integer without a cast /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:85: note: expected ‘struct zval *’ but argument is of type ‘long int’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:489: error: too many arguments to function ‘pb_parse_field_value’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:496: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:507: warning: passing argument 4 of ‘pb_parse_field_value’ makes pointer from integer without a cast /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:85: note: expected ‘struct zval *’ but argument is of type ‘long int’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:507: error: too many arguments to function ‘pb_parse_field_value’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:521: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:525: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:528: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:529: error: ‘IS_BOOL’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:532: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_serializeToString’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:554: warning: passing argument 3 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:179: note: expected ‘uint *’ but argument is of type ‘zend_ulong *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:554: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:179: note: expected ‘ulong *’ but argument is of type ‘struct Bucket **’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:554: error: too few arguments to function ‘zend_hash_get_current_key_ex’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:555: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:182: note: expected ‘void **’ but argument is of type ‘struct Bucket **’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:555: error: too few arguments to function ‘zend_hash_get_current_data_ex’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:561: error: too few arguments to function ‘zend_hash_index_find’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:570: warning: assignment makes pointer from integer without a cast /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:574: error: ‘IS_TRUE’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:585: warning: passing argument 4 of ‘pb_serialize_packed_field’ makes pointer from integer without a cast /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:87: note: expected ‘struct zval *’ but argument is of type ‘long int’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:585: error: too many arguments to function ‘pb_serialize_packed_field’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:589: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type /usr/include/php/Zend/zend_hash.h:182: note: expected ‘void **’ but argument is of type ‘struct Bucket **’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:589: error: too few arguments to function ‘zend_hash_get_current_data_ex’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:599:32: error: macro "RETVAL_STRINGL" requires 3 arguments, but only 2 given /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:599: error: ‘RETVAL_STRINGL’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:601: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:607: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘zim_ProtobufMessage_set’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:615: error: ‘zend_long’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:615: error: expected ‘;’ before ‘field_number’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:618: error: ‘field_number’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:630: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:634: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_assign_value’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:758: error: ‘IS_BOOL’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:767: error: ‘IS_FALSE’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:767: error: ‘IS_TRUE’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:775: error: ‘zend_long’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:776: error: ‘ZEND_LONG_MAX’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:803: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:806: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:808: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: At top level: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:813: error: expected declaration specifiers or ‘...’ before ‘zend_long’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_print_field_value’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:821: error: ‘IS_TRUE’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:823: error: ‘IS_FALSE’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: At top level: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:841: error: expected declaration specifiers or ‘...’ before ‘zend_long’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_print_debug_field_value’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:852: error: ‘level’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:855:92: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:855: error: ‘ZVAL_STRINGL’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:857: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type /usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:857: warning: passing argument 6 of ‘call_user_function’ from incompatible pointer type /usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:858: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:865: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:868: error: too many arguments to function ‘pb_print_field_value’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: At top level: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:871: error: expected declaration specifiers or ‘...’ before ‘zend_long’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_dump_field_value’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:883: error: ‘IS_BOOL’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:884: error: ‘level’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:889:64: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:889: error: ‘ZVAL_STRINGL’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:891: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type /usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:891: warning: passing argument 6 of ‘call_user_function’ from incompatible pointer type /usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:892: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:899: error: too many arguments to function ‘pb_print_field_value’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_get_field_descriptor’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:907: error: too few arguments to function ‘zend_hash_index_find’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_get_field_type’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:919: warning: assignment makes pointer from integer without a cast /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:931:70: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_get_field_descriptors’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:931: error: ‘ZVAL_STRINGL’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:932: warning: passing argument 2 of ‘call_user_function_ex’ from incompatible pointer type /usr/include/php/Zend/zend_API.h:455: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:932: warning: passing argument 4 of ‘call_user_function_ex’ from incompatible pointer type /usr/include/php/Zend/zend_API.h:455: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:936: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_get_field_name’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:952: warning: assignment makes pointer from integer without a cast /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:958: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:962: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_get_value’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1035: error: too few arguments to function ‘zend_hash_index_find’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_get_values’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1047: warning: assignment makes pointer from integer without a cast /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: At top level: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1051: error: expected declaration specifiers or ‘...’ before ‘zend_long’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_parse_field_value’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1058: error: ‘field_type’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1068: error: ‘zend_long’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1068: error: expected ‘;’ before ‘int32_value’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1073: error: ‘ZEND_LONG_MAX’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1073: error: ‘ZEND_LONG_MIN’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1088: error: ‘IS_BOOL’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1098:38: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1098: error: ‘ZVAL_STRINGL’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1121:97: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_serialize_field_value’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1121: error: ‘ZVAL_STRINGL’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1123: warning: passing argument 2 of ‘call_user_function’ from incompatible pointer type /usr/include/php/Zend/zend_API.h:454: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1124: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1127: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1130: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1136: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1149: error: ‘IS_TRUE’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: At top level: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1196: error: expected declaration specifiers or ‘...’ before ‘zend_long’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_serialize_packed_field’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1200: error: ‘field_type’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1242:72: error: macro "ZVAL_STRINGL" requires 4 arguments, but only 3 given /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c: In function ‘pb_is_field_packed’: /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1242: error: ‘ZVAL_STRINGL’ undeclared (first use in this function) /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1244: warning: passing argument 2 of ‘zend_hash_find’ makes pointer from integer without a cast /usr/include/php/Zend/zend_hash.h:164: note: expected ‘const char *’ but argument is of type ‘int’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1244: error: too few arguments to function ‘zend_hash_find’ /var/www/rd1_24_11/whatsapp/php-protobuf/protobuf.c:1245: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type /usr/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’ make: *** [protobuf.lo] Error 1

    opened by phpRajat 7
Releases(v0.12.4)
Owner
Allegro Tech
Allegro Tech Open Source Projects
Allegro Tech
A PHP 5.3+ and PHP 7.3 framework for OpenGraph Protocol

Opengraph Test with Atoum cd Opengraph/ curl -s https://getcomposer.org/installer | php php composer.phar install --dev ./vendor/atoum/atoum/bin/atoum

Axel Etcheverry 89 Dec 27, 2022
A pure PHP implementation of the open Language Server Protocol. Provides static code analysis for PHP for any IDE.

A pure PHP implementation of the open Language Server Protocol. Provides static code analysis for PHP for any IDE.

Felix Becker 1.1k Jan 4, 2023
A PHP implementation of the Unleash protocol aka Feature Flags in GitLab.

A PHP implementation of the Unleash protocol aka Feature Flags in GitLab. This implementation conforms to the official Unleash standards and implement

Dominik Chrástecký 2 Aug 18, 2021
An implementation of the Minecraft: Bedrock Edition protocol in PHP

BedrockProtocol An implementation of the Minecraft: Bedrock Edition protocol in PHP This library implements all of the packets in the Minecraft: Bedro

PMMP 94 Jan 6, 2023
MajorDoMo is an open-source DIY smarthome automation platform aimed to be used in multi-protocol and multi-services environment.

MajorDoMo (Major Domestic Module) is an open-source DIY smarthome automation platform aimed to be used in multi-protocol and multi-services environment. It is based on web-technologies stack and ready to be delivered to any modern device. It is very flexible in configuration with OOP paradigm used to set up automation rules and scripts. This platform can be installed on almost any personal computer running Windows or Linux OS.

Sergei Jeihala 369 Dec 30, 2022
Spotweb is a decentralized usenet community based on the Spotnet protocol.

Spotweb is a decentralized usenet community based on the Spotnet protocol. Spotweb requires an operational webserver with PHP5.6 installed, it

Spotweb 433 Jan 1, 2023
Spotweb is a decentralized usenet community based on the Spotnet protocol.

Spotweb Spotweb is a decentralized usenet community based on the Spotnet protocol. Spotweb requires an operational webserver with PHP5.6 installed, it

[sCRiPTz-TEAM] 2 Nov 29, 2021
> Create e-wallet, send money, withdraw and check balance all via USSD protocol

Mobile Money USSD solution Create e-wallet, send money, withdraw and check balance all via USSD protocol Create e-wallet Step 1 Step 2 Step 3 Step 4 S

Emmanuel HAKORIMANA 1 Nov 3, 2021
Configure Magento 2 to send email using Google App, Gmail, Amazon Simple Email Service (SES), Microsoft Office365 and many other SMTP (Simple Mail Transfer Protocol) servers

Magento 2 SMTP Extension - Gmail, G Suite, Amazon SES, Office 365, Mailgun, SendGrid, Mandrill and other SMTP servers. For Magento 2.0.x, 2.1.x, 2.2.x

MagePal :: Magento Extensions 303 Oct 7, 2022
Tars is a high-performance RPC framework based on name service and Tars protocol, also integrated administration platform, and implemented hosting-service via flexible schedule.

TARS - A Linux Foundation Project TARS Foundation Official Website TARS Project Official Website WeChat Group: TARS01 WeChat Offical Account: TarsClou

THE TARS FOUNDATION PROJECTS 9.6k Jan 1, 2023
TiDB is an open source distributed HTAP database compatible with the MySQL protocol

What is TiDB? TiDB ("Ti" stands for Titanium) is an open-source NewSQL database that supports Hybrid Transactional and Analytical Processing (HTAP) wo

PingCAP 33.1k Jan 9, 2023
Starless Sky is a network protocol for secure identities, providing the use of assymetric identities, public information, end-to-end messaging and smart contracts

Descentralized network protocol providing smart identity over an secure layer. What is the Starless Sky Protocol? Starless Sky is a network protocol f

Starless Sky Protocol 3 Jun 19, 2022
This tool can write the monolog standard log directly to clickhouse in real time via the tcp protocol

log2ck This tool can write the monolog standard log directly to clickhouse in real time via the tcp protocol. If you can write regular rules, other st

Hisune 9 Aug 15, 2022
Google Analytics Measurement Protocol Package for Symfony

Google Analytics Measurement Protocol Package for Symfony. Supports all GA Measurement Protocol API methods.

Four Labs 31 Jan 5, 2023
The Current US Version of PHP-Nuke Evolution Xtreme v3.0.1b-beta often known as Nuke-Evolution Xtreme. This is a hardened version of PHP-Nuke and is secure and safe. We are currently porting Xtreme over to PHP 8.0.3

2021 Nightly Builds Repository PHP-Nuke Evolution Xtreme Developers TheGhost - Ernest Allen Buffington (Lead Developer) SeaBeast08 - Sebastian Scott B

Ernest Buffington 7 Aug 28, 2022
A sampling profiler for PHP written in PHP, which reads information about running PHP VM from outside of the process.

Reli Reli is a sampling profiler (or a VM state inspector) written in PHP. It can read information about running PHP script from outside of the proces

null 272 Dec 22, 2022
PHP Meminfo is a PHP extension that gives you insights on the PHP memory content

MEMINFO PHP Meminfo is a PHP extension that gives you insights on the PHP memory content. Its main goal is to help you understand memory leaks: by loo

Benoit Jacquemont 994 Dec 29, 2022
A sampling profiler for PHP written in PHP, which reads information about running PHP VM from outside of the process.

Reli Reli is a sampling profiler (or a VM state inspector) written in PHP. It can read information about running PHP script from outside of the proces

null 258 Sep 15, 2022
A multithreaded application server for PHP, written in PHP.

appserver.io, a PHP application server This is the main repository for the appserver.io project. What is appserver.io appserver.io is a multithreaded

appserver.io 951 Dec 25, 2022