- 16 Nov, 2019 1 commit
-
-
Rafi Kamal authored
-
- 14 Nov, 2019 1 commit
-
-
Paul Yang authored
* Register additional handlers from wrappers * Return zval instead of parse frame * Use parse frame * Update upb * Lazily create wrapper messages * Fix a segment fault Need check type of field before getting submsg def * Avoid expanding during serialization and direct access * Fix a bug that getXXXUnwrapped returns null for string * Implement writeWrapperUnwrapped * Add more tests * Fix oneof wrapper parsing * Fix get oneof field * Avoid expansion for oneof wrappers * Fix bug * Fix a bug that in php7 variable is defined out of scope * Fix broken tests * Update upb to fix Timestamp conformance tests * Fix segmentation fault for oneof wrapper fields * Fix encoding/decoding top level wrapper values * Add type checking for write wrapper value in php7 * Fix zts build * Fix the bug that readWrapperValue uses parent message's layout to access wrapper value * Fix wrapper in map
-
- 30 Aug, 2019 1 commit
-
-
Paul Yang authored
* When length is zero, substr returns null instead of emptry string, which breaks the invariable for message. * Tested in https://github.com/protocolbuffers/protobuf/pull/6560
-
- 29 Aug, 2019 1 commit
-
-
Paul Yang authored
* For missing message value, map should create a default message instance in order to keep its invariable. * On 32-bit platform, int64 map key should be string
-
- 09 Aug, 2019 1 commit
-
-
Jie Luo authored
* Add changelog for 3.9.x * Revert "Make php message class final to avoid mocking (#6277)" (#6324) This reverts commit 7f84a943. This is just temporary. Eventually, we still want to roll forward this change. Some users are complaining they need more time to clean up their code. * Update extract_includes.bat.in File io_win32.h is not in directory google\protobuf\stubs under directory google\protobuf\io * Set oneof case in array constructor (#6351) Forgot to set it previously. * Update protobuf version (#6366) * Drop building wheel for python 3.4 (#6406) https://github.com/matthew-brett/multibuild/pull/240 * Fix binary compatibility in FieldCodec factory methods (#6380) (#6424) * Fix binary compatibility in FieldCodec factory messages * Make default value parameter for current factories required * Route old methods through default value overloads * Remove ExtensionRegistry.Add(params) overload * Rename ExtensionRegistry.Add(IEnumerable<Extension>) overload to AddRange * Edit naming of parameters in Extension classes * * Fix add API warnings to docs for extension APIs * Rename internal ExtensionSet.GetValue to TryGetValue * Disable javadoc error (#6371) * Disable javadoc error Actual fixes of the javadoc will be followed up * Remove duplicated configuration * Update javadoc plugin version * Updated Bazel test script to use most recent Bazel version (#6413) (#6433) I'm not exactly sure why, but this fixes the failing Bazel presubmit test. Using the most recent version seems like a good idea anyway so that we can make sure we're compatible with any new Bazel changes. * [bazel] Add fixes for --incompatible_load_{cc,java,proto}_rules_from_bzl * No need to update version in generated code (#6471) generate_descriptor will handle that * Update protobuf version (#6472)
-
- 19 Jun, 2019 1 commit
-
-
Paul Yang authored
* Make php message class final Because proto messages are just data object, they should not be mocked. Explicitly make them final to avoid accidental usage. * Update generated descriptors
-
- 18 Jun, 2019 1 commit
-
-
Leonard Hecker authored
* php: Fixed php notices for unknown enum indices * php: Fixed formatting of Duration This fixes: * Missing nanoseconds. The nanoseconds where divided as a float and implicitly converted to a string before being passed to bcadd. This can result in a float formatted in scientific/exponential notation, which bcmath doesn't understand. * Durations are supposed to be formatted without trailing zeroes.
-
- 24 May, 2019 1 commit
-
-
Paul Yang authored
-
- 21 May, 2019 1 commit
-
-
Hao Nguyen authored
-
- 10 Apr, 2019 1 commit
-
-
Hao Nguyen authored
-
- 13 Mar, 2019 1 commit
-
-
Paul Yang authored
* Remove GPBWrapperUtil from generated code * Add newline
-
- 26 Feb, 2019 1 commit
-
-
Yilun Chong authored
-
- 21 Feb, 2019 1 commit
-
-
Xiang Dai authored
Signed-off-by: Xiang Dai <764524258@qq.com>
-
- 16 Feb, 2019 2 commits
-
-
michaelbausor authored
* Exclude repeated and map fields from normalization * Remove erroneous comments * Remove unnecessary check for map type * Add support for repeated/map fields, add tests * Fix wrapper message in repeated/map fields in array constructor * Address PR comments * Removed unused code * Update docs
-
michaelbausor authored
* Exclude repeated and map fields from normalization * Remove erroneous comments * Remove unnecessary check for map type * Add support for repeated/map fields, add tests * Fix wrapper message in repeated/map fields in array constructor * Address PR comments * Removed unused code * Update docs
-
- 28 Jan, 2019 1 commit
-
-
Bo Yang authored
json_decode automatically convert numeric string to integer, so that we need to convert it back. However, this will suceed to parse invalid json data with string field set as integer even though it should have failed. Because, the failure case is less often than the succeeding case, we decided to make this change. Users should make sure their data don't use integer for string fields by themselves.
-
- 22 Jan, 2019 1 commit
-
-
Paul Yang authored
* Fix empty FieldMask json encoding/decoding * Add failed test to python's conformance failure list
-
- 12 Jan, 2019 1 commit
-
-
Nicolás Elliott authored
Added a few \ on the comments to match the exceptions scope when is referenced while in a namespace. So the IDEs can be happy.
-
- 08 Jan, 2019 1 commit
-
-
Paul Yang authored
* Fix Empty ListValue/Struct json encoding * Add test for empty ListValue
-
- 15 Dec, 2018 1 commit
-
-
Paul Yang authored
* Down-integrate internal changes * Update generated code for php, objc and csharp. * Add missing dependency in conformance_php
-
- 29 Nov, 2018 1 commit
-
-
michaelbausor authored
* adds string-to-int and int-to-string methods to enums * remove check for valueToName property in EnumTrait * Remove unused imports * Update to avoid using EnumTrait * Remove EnumTrait * Update enum types * Move name and value methods into generated classes * Remove functions from GPBUtil * Test well known enums * Implement enum value to/from name in c extension * Only generate use statement when namespace is present
-
- 09 Nov, 2018 1 commit
-
-
Adam Cozzette authored
-
- 07 Oct, 2018 1 commit
-
-
michaelbausor authored
* Add support for primitive types in setters * Update to address PR feedback * Add tests and fixes for repeated fields * Remove repeated field code, add getters * Cleanup, test getters and oneofs * Move boxing logic into separate class * Add tests for wrapper type constructor args * Update to add new setXXXValue methods * Fix tests for invalid values * Fix c extension for wrapper accessors * Fix the bug that well known types didn't call Message_construct * Address PR comments * Refactoring init message with array logic * Add include path to protoc * Add missing TSRM_LS defintion * Fix TSRM_LS * Fix dist check
-
- 23 Sep, 2018 1 commit
-
-
Paul Yang authored
* Adopt upb change for timestamp and duration json to php * Remove unused code * Re-sync upb * Fix php implementation timestamp json parsing * Fix strptime use local timezone on mac. * Remove succeeding tests * Resync * Add tests for values * Fix php tests * Fix encoder handlers change default value Previously, oneofsubmsg_handler and submsg_handler change zval's default value directly. The fix use REPLACE_ZVAL_VALUE which create a copy of parsed value and assign it to zval.
-
- 09 Aug, 2018 1 commit
-
-
Feng Xiao authored
-
- 20 Jul, 2018 1 commit
-
-
Leonard Hecker authored
* php: Added nanosecond support for Timestamp * php: Fixed compatibility test
-
- 16 Jul, 2018 1 commit
-
-
Bo Yang authored
-
- 13 Jul, 2018 2 commits
- 10 Jul, 2018 1 commit
-
-
吕海涛 authored
-
- 08 Jun, 2018 1 commit
-
-
Paul Yang authored
* Use legacy name in php runtime Old generated code cannot work with new runtime, because the new runtime assumes new class name for nested message. For details see #4738. * Remove unused method
-
- 25 May, 2018 2 commits
-
-
Brent Shaffer authored
* uses namespaces for nested messages and enums * fixes namespaces for PHP dist * fixes namespace for Descriptors, adds Cardinality and Kind * fixes nested namespaces for reserved words and adds tests * adds tests and generator fix for php class prefixes * fixes escaping of protobuf packages, enum comments, misc others * nice refactor of generated code * adds class files for backwards compatibility * simplifies code with templates * adds compatibility files to makefile * cleanup of generator and fixes nested namespace bug * regenerates proto types * remove internal BC classes * adds deprecated warning, adds methods back * simplifies if statement * fixes dist files * addresses review comments * adds back TYPE_URL_PREFIX constant * adds @deprecated to old nested class files * skips tests which require a separate process when protobuf.so is enabled * Adds tests for legacy nested classes that do not require separate processes to test * uses legacy names for GPBUtil message check * adds block for IDE @deprecated message * Namespace for nested message/enum in c extension * Remove unused code
-
Brent Shaffer authored
* PHP array constructors for protobuf messages * removes Descriptor from error message * allows mergeFrom to accept an array * only use initWithDescriptor if instanceof MapEntry * adds doc comments * removes ability for constructors to take arrays for submessages * Revert "allows mergeFrom to accept an array" This reverts commit b7b72182d561634af12c5c5c56a7cda3b33241f9. * makes mergeFromArray protected and fixes mergeFrom whitespace * Separates merging from JSON and merging from PHP array * removes well-known types and json keys from array construction * Addresses PR review comments * cleans up tests * fixes exception messages
-
- 24 May, 2018 2 commits
-
-
Brent Shaffer authored
* uses namespaces for nested messages and enums * fixes namespaces for PHP dist * fixes namespace for Descriptors, adds Cardinality and Kind * fixes nested namespaces for reserved words and adds tests * adds tests and generator fix for php class prefixes * fixes escaping of protobuf packages, enum comments, misc others * nice refactor of generated code * adds class files for backwards compatibility * simplifies code with templates * adds compatibility files to makefile * cleanup of generator and fixes nested namespace bug * regenerates proto types * remove internal BC classes * adds deprecated warning, adds methods back * simplifies if statement * fixes dist files * addresses review comments * adds back TYPE_URL_PREFIX constant * adds @deprecated to old nested class files * skips tests which require a separate process when protobuf.so is enabled * Adds tests for legacy nested classes that do not require separate processes to test * uses legacy names for GPBUtil message check * adds block for IDE @deprecated message * Namespace for nested message/enum in c extension * Remove unused code
-
Brent Shaffer authored
* PHP array constructors for protobuf messages * removes Descriptor from error message * allows mergeFrom to accept an array * only use initWithDescriptor if instanceof MapEntry * adds doc comments * removes ability for constructors to take arrays for submessages * Revert "allows mergeFrom to accept an array" This reverts commit b7b72182d561634af12c5c5c56a7cda3b33241f9. * makes mergeFromArray protected and fixes mergeFrom whitespace * Separates merging from JSON and merging from PHP array * removes well-known types and json keys from array construction * Addresses PR review comments * cleans up tests * fixes exception messages
-
- 17 May, 2018 1 commit
-
-
Adam Cozzette authored
-
- 11 May, 2018 1 commit
-
-
Paul Yang authored
-
- 10 May, 2018 1 commit
-
-
Paul Yang authored
* Avoid direct check of class name So that subclasses are also ok * Use type hint in function signature.
-
- 30 Apr, 2018 1 commit
-
-
Petar Dambovaliev authored
The class name was linked to the next word in the sentence. "User\UserRequestis not found in descriptor pool."
-
- 09 Apr, 2018 1 commit
-
-
urfinjuezz authored
-