aboutsummaryrefslogtreecommitdiffhomepage
path: root/php/ext/google/protobuf/encode_decode.c
Commit message (Collapse)AuthorAge
* Enable ignoring unknown in json parsing in php (#4839)Gravatar Paul Yang2018-07-09
| | | | | | | | | | * Enable ignoring unknown in json parsing in php * Update generated descriptor files * Update failure list for other languages. * Remove unnecessary php files
* Fix more memory leak for php c extension (#4211)Gravatar Paul Yang2018-01-25
| | | | | | * Fix more memory leak for php c extension * Fix memory leak for php5.5
* Recursively clear unknown fields in submessages. (#3982)Gravatar Paul Yang2017-12-07
| | | | | | | | | | | | | | * Recursively clear unknown fields in submessages. * Recursively discard unknown fields in submsg for c extension * Fix zts build * Add comment for tests * Add a TODO to add a util for encoding varint for better readability. * Add test for oneof message field.
* Provide discardUnknonwnFields API in php (#3976)Gravatar Paul Yang2017-11-30
| | | | | | * Provide discardUnknownFields API in php implementation * Provide discardUnknownFields API in php c extension.
* Reserve unknown fields in php (#3659)Gravatar Paul Yang2017-10-09
| | | | | | | | | | | | | | | | | | | | | | * Reserve unknown fields in upb 1) For decoding, an unknownfields will be lazily created on message, which contains bytes of unknown fields. 2) For encoding, if the unknownfields is present on message, all bytes contained in it will be serialized. * Register the function to encode unknown field at decode time. * Remove upb_handlers_setaddunknown * Use upb_sink_putunknown in decoder * Remove upb_pb_encoder_encode_unknown * Do not expose encode_unknown * Implement reserve unknown field in php Implement. * Make buffer private to CodedInputStream
* Add any support in php runtime. (#3486)Gravatar Paul Yang2017-08-25
| | | | | | | | | | | | * Add any support in php runtime. * Remove unused file in config.m4 * Fix comments * Fix error for tsrmls build * Add newly added file to Makefile.am
* Fix the bug in php c extension that setting one field can change ↵Gravatar Paul Yang2017-08-04
| | | | | | | | | | | | | | | | | | | | | | another field's value. (#3455) * Fix the bug in php c extension that setting one field can change another field's value. The reason is that previously, in c extension, it was assumed that the order that fields were declared in php is the same as the order of fields in upb. This is not true. Now, for every field in upb, we will look up the actual property that is corresponding to the upb field. * Cleanup pull request * Fix indentation * Port to php5 * Port with php7.1 * Port to zts
* Fix cycle dependency for repeated field not collected by gc (#3399)Gravatar Paul Yang2017-07-25
|
* Uncomment php tests (#3301)Gravatar Paul Yang2017-07-09
|
* Add json encode/decode for php. (#3226)Gravatar Paul Yang2017-06-30
| | | | | | | | | | * Add json encode/decode for php. * Fix php conformance test on 32-bit machines. * Fix conformance test for c extension. * Fix comments
* Oneof field should be serialized even it's equal to default. (#3153)Gravatar Paul Yang2017-05-29
|
* Throw exception when parsing invalid data. (#3000)Gravatar Paul Yang2017-04-21
|
* Make PHP c extension work with PHP7 (#2951)Gravatar Paul Yang2017-04-19
|
* Rename encode/decode to serializeToString/mergeFromString (#2795)Gravatar Paul Yang2017-03-08
| | | | | This better shows the semantic of the API. For already setted fields, mergeFromString do replacement for singular fields and appending for repeated fields.
* Add mergeFrom method on Message (#2766)Gravatar Paul Yang2017-03-01
| | | | | | | | This method merges the contents of the specified message into the current message. Singular fields that are set in the specified message overwrite the corresponding fields in the current message. Repeated fields are appended. Map fields key-value pairs are overritten. Singular/Oneof sub-messages are recursively merged. All overritten sub-messages are deep-copied.
* Implement json encoding decoding for php. (#2682)Gravatar Paul Yang2017-02-08
|
* Update upb for php. (#2662)Gravatar Paul Yang2017-02-06
|
* Fix compile error for php on Mac.Gravatar Bo Yang2016-10-10
|
* Fix segmentation fault when ZTS is defined.Gravatar Bo Yang2016-10-10
|
* PHP: fix ZTS tsrm_ls errors (#2189)Gravatar Stanley Cheung2016-10-10
| | | | | | * PHP: fix ZTS tsrm_ls errors * Fix a few more macros
* Check in php implementation. (#2052)Gravatar Paul Yang2016-09-15
This pull request includes two implementation: C extension and PHP package. Both implementations support encode/decode of singular, repeated and map fields.