aboutsummaryrefslogtreecommitdiff
path: root/php/ext/google/protobuf/encode_decode.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '3.6.x' into merge-3-6-xAdam Cozzette2018-08-011-1/+1
|\
| * fix for API change in PHP 7.3 (#4898)Paul Yang2018-07-121-1/+1
| |
* | Enable ignoring unknown in json parsing in php (#4839)Paul Yang2018-07-091-2/+5
|/ | | | | | | | | | * 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)Paul Yang2018-01-251-2/+3
| | | | | | * Fix more memory leak for php c extension * Fix memory leak for php5.5
* Recursively clear unknown fields in submessages. (#3982)Paul Yang2017-12-071-3/+92
| | | | | | | | | | | | | | * 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)Paul Yang2017-11-301-0/+9
| | | | | | * Provide discardUnknownFields API in php implementation * Provide discardUnknownFields API in php c extension.
* Reserve unknown fields in php (#3659)Paul Yang2017-10-091-0/+44
| | | | | | | | | | | | | | | | | | | | | | * 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)Paul Yang2017-08-251-17/+24
| | | | | | | | | | | | * 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 ↵Paul Yang2017-08-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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)Paul Yang2017-07-251-2/+2
|
* Uncomment php tests (#3301)Paul Yang2017-07-091-1/+1
|
* Add json encode/decode for php. (#3226)Paul Yang2017-06-301-36/+84
| | | | | | | | | | * 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)Paul Yang2017-05-291-1/+3
|
* Throw exception when parsing invalid data. (#3000)Paul Yang2017-04-211-8/+2
|
* Make PHP c extension work with PHP7 (#2951)Paul Yang2017-04-191-182/+347
|
* Rename encode/decode to serializeToString/mergeFromString (#2795)Paul Yang2017-03-081-2/+2
| | | | | 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)Paul Yang2017-03-011-1/+1
| | | | | | | | 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)Paul Yang2017-02-081-6/+105
|
* Update upb for php. (#2662)Paul Yang2017-02-061-1/+1
|
* Fix compile error for php on Mac.Bo Yang2016-10-101-2/+4
|
* Fix segmentation fault when ZTS is defined.Bo Yang2016-10-101-11/+17
|
* PHP: fix ZTS tsrm_ls errors (#2189)Stanley Cheung2016-10-101-30/+34
| | | | | | * PHP: fix ZTS tsrm_ls errors * Fix a few more macros
* Check in php implementation. (#2052)Paul Yang2016-09-151-0/+1245
This pull request includes two implementation: C extension and PHP package. Both implementations support encode/decode of singular, repeated and map fields.