aboutsummaryrefslogtreecommitdiffhomepage
path: root/php/src
Commit message (Collapse)AuthorAge
* Add backslach to make class explict in global namespaceGravatar Bo Yang2017-12-11
|
* 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.
* Use fully qualifed name for DescriptorPool in Any.php to avoid name (#3886)Gravatar Paul Yang2017-11-15
| | | conflict
* All integer types should accept null in json. (#3869)Gravatar Paul Yang2017-11-13
|
* Fix php well known type conformance tests (#3828) (#3840)Gravatar Paul Yang2017-11-04
| | | | | | | | | | | | | | | * Fix php well known type conformance tests * Properly generate code for test.proto * Provide GPBMetadata files in c extensions for generated files to import. * Remove unnecessary test * Clean up code * Add declaration for initOnce. * Refactoring
* update joda-time javadoc urlGravatar xuwei-k2017-10-30
|
* Update descriptor protosGravatar Jisi Liu2017-10-18
|
* Merge remote-tracking branch 'origin/3.4.x' into masterGravatar Jisi Liu2017-10-11
|\
* | 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 well known types to php runtime. (#3697)Gravatar Paul Yang2017-10-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add well known types to php runtime. * Fix php7.0 tests * No longer generate empty.proto in test as it has been included in runtime. * Fix zts build * Clean code * Rename g_p_b_empty to empty. * Don't generate code for empty.proto in compatibility test * Fix 32-bit * Fix mac build * Fix Makefile.am to add new files
* | Enforce all error report for php tests. (#3670)Gravatar Paul Yang2017-09-22
| | | | | | | | | | | | * Enforce all error report for php tests. * Import vendor/autoload.php in tests/bootstrap_phpunit.php
* | Add $ before url_prefix_len to make it a variable. (#3668)Gravatar Paul Yang2017-09-20
| | | | | | | | | | | | | | | | * Add $ before url_prefix_len to make it a variable. * Remove unnecessary string length check * Remove useless $type_url_len
* | Integrated internal changes from GoogleGravatar Adam Cozzette2017-09-14
| |
| * Change array to associate array.Gravatar Bo Yang2017-09-11
| |
* | Add well-known timestamps to JSON for PHP (#3564)Gravatar Jack Wakefield2017-09-10
| |
| * Add prefix to php reserved keywords.Gravatar Bo Yang2017-09-08
| |
* | Add native php support for Duration. (#3583)Gravatar Paul Yang2017-09-05
| |
* | Add php support for Timestamp. (#3575)Gravatar Paul Yang2017-08-31
| | | | | | | | | | | | * Add php support for Timestamp. * Fix comments
| * change the field number of php_generic_service to fix the conflict with (#3576)Gravatar Paul Yang2017-08-30
| | | | | | internal descriptor.proto
* | 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
* Use message name as defined in php runtime.Gravatar Bo Yang2017-08-21
|
* Merge branch 'master' into 3.4.xGravatar Bo Yang2017-08-05
|\
| * Update PHP descriptors (#3391)Gravatar michaelbausor2017-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add descriptors test * Update descriptors tests * Add public descriptors * Add test_desriptors.proto to test script * Update composer files * Remove references to GPBType, update tests to be compatible with c * Update for c extension compatibility * Remove nested enums for descriptor, update tests * Strip leading '.' from descriptor name * Update tests with test for getClass, fix OneofDescriptor * Add new files to Makefile.am
| * Fixing HHVM Compatibility (#3437)Gravatar Ryan Gordon2017-08-02
| |
| * Change divideInt64ToInt32 to static (#3436)Gravatar Tony Wong2017-08-01
| | | | | | | | | | divideInt64ToInt32 is called statically from protobuf/php/src/Google/Protobuf/Internal/CodedOutputStream.php (the only reference) This causes fatal error in PHP 7.1 (32-bit only because 64-bit doesn't use this function)
| * Removes unnecessary pass-by-references in PHP internal classes (#3433)Gravatar Brent Shaffer2017-08-01
| |
| * compiles removal of newline (#3333) (#3370)Gravatar Brent Shaffer2017-07-19
| |
* | Merge master into 3.4.xGravatar Jisi Liu2017-07-18
|\|
* | Update csharp and php descriptorGravatar Jisi Liu2017-07-18
| |
| * Support PHP generic services (#3269)Gravatar Matt A2017-07-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add php_generic_services option * Generate PHP generic services * Respect namespaces for generated PHP services * Test PHP generated services * Rename PHP generator service method doc comment function * Correct phpdoc service method case * Test namespaced PHP generic services * Always use the FQCN for PHP generic service input/output * Add generated_service_test to php test.sh * Add php service test protos to CI * Add php service files to php_EXTRA_DIST * Use Interface suffix for php generic services
| * remove pass by reference for php setters (#3344)Gravatar Brent Shaffer2017-07-17
| | | | | | | | | | | | * remove pass by reference for php setters * comments out memory leak test
| * Add map iterator for c extension (#3350)Gravatar Paul Yang2017-07-13
| |
| * 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
| * adds PHPDoc @return and @param for getters and setters respectively (#3131)Gravatar Brent Shaffer2017-06-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * adds PHPDoc @return and @param for getters and setters respectively * addresses changes in PR review * adds documentation tests * Update php_generator: - Prepend \ to names where required - Remove <pre> tags - Update protobuf field comments * Updates class files with the protobuf changes * Addresses review comments * removes Protobuf Type line from PHP generated classes * fixes phpdoc test * adds array types to phpdoc
| * Switch to addEnumType to fix fatal error (#3225)Gravatar Ryan Gordon2017-06-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Switch to addEnumType to fix fatal error * Fixing more cases of HHVM incompatibility * Updating tests to be hhvm compatible * Fixing tests * Fixing merge * Don't use call_user_func, should hopefully fix tests * Fixing spelling * Fixing another misspelling in a test * Fixing placement of append and kvUpdate functions * Actually fix function helpers * Remove double addEnumType. How did this ever work? * Fixing a couple more tests * Only use the setter if the return value isn't an object
| * Fix php jenkins test (#3233)Gravatar Paul Yang2017-06-15
| | | | | | | | Update commit id to upload latest composer. Compile php with bc-math for future json support.
| * Fix incorrect function call (#3232)Gravatar michaelbausor2017-06-15
| |
| * Follows proper autoloading standards (#3123)Gravatar Brent Shaffer2017-06-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Follows proper autoloading standards - Splits PHP classes in descriptor.php into separate files - Splits MapFieldIter and RepeatedFieldIter into separate files - Moves descriptor.php to Internal/functions.php - Moves all namespaced functions into Iternal/functions.php * fixes Makefile.am for added php files * [PHP] moves all functions to GPBUtil * removes description.php from the makefile
| * Add new file option php_namespace. (#3162)Gravatar Paul Yang2017-06-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add new file option php_namespace. Use this option to change the namespace of php generated classes. Default is empty. When this option is empty, the package name will be used for determining the namespace. * Uncomment commented tests * Revert gdb test change * Update csharp descriptor. * Add test for empty php_namespace.
| * Oneof field should be serialized even it's equal to default. (#3153)Gravatar Paul Yang2017-05-29
| |
| * Add ARRAY for reserved name (#3150)Gravatar Paul Yang2017-05-29
|/
* Add nested enum descriptor in php rumtime. (#3009)Gravatar Paul Yang2017-04-24
|
* Throw exception when parsing invalid data. (#3000)Gravatar Paul Yang2017-04-21
|
* Allow proto files to import descriptor.proto (#2995)Gravatar Paul Yang2017-04-20
| | | | | | | | | descriptor.proto uses proto2 syntax, which is not ready for external usage. However, some proto3 files import descriptor.proto and cannot be used. In this PR, all references (We cheated by only removing extensions, which is enough for now. User should avoid using messages defined in descriptor.proto as field type.) to content in descriptor.proto are removed from generated files. Those that import descriptor.proto can be used like other proto files.
* Prepend "PB" to generated classes whose name are reserved words. (#2990)Gravatar Paul Yang2017-04-20
|
* Make PHP c extension work with PHP7 (#2951)Gravatar Paul Yang2017-04-19
|
* Add file option php_class_prefix (#2849)Gravatar Paul Yang2017-03-17
| | | | This option will be prepended to generated classes of all messages in the containing file.
* Bug fix: When encoding, negative int32 values should be padded to int64 (#2660)Gravatar Paul Yang2017-03-15
| | | in order to be wire compatible.
* Repeated/Map field setter should accept a regular PHP array (#2817)Gravatar Paul Yang2017-03-10
| | | | | | | | Accept regular PHP array for repeated/map setter. Existing map/repeated field will be swapped by a clean map/repeated field. Then, elements in the array will be added to the map/repeated field. All elements will be type checked before adding. See #2686 for detail.