1. 16 Nov, 2019 1 commit
  2. 14 Nov, 2019 1 commit
    • Paul Yang's avatar
      Lazily Create Singular Wrapper Message (#6833) · 601f6963
      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
      601f6963
  3. 30 Aug, 2019 1 commit
  4. 29 Aug, 2019 1 commit
  5. 09 Aug, 2019 1 commit
    • Jie Luo's avatar
      Merge 3.9.x 201908071359 to master (#6484) · 43156775
      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)
      43156775
  6. 19 Jun, 2019 1 commit
  7. 18 Jun, 2019 1 commit
    • Leonard Hecker's avatar
      php: Fix formatting of Duration (#6155) · 43307d4d
      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.
      43307d4d
  8. 24 May, 2019 1 commit
  9. 21 May, 2019 1 commit
  10. 10 Apr, 2019 1 commit
  11. 13 Mar, 2019 1 commit
  12. 26 Feb, 2019 1 commit
  13. 21 Feb, 2019 1 commit
  14. 16 Feb, 2019 2 commits
  15. 28 Jan, 2019 1 commit
    • Bo Yang's avatar
      Convert integer to string if field is string field in json · 96029f3c
      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.
      96029f3c
  16. 22 Jan, 2019 1 commit
  17. 12 Jan, 2019 1 commit
    • Nicolás Elliott's avatar
      Fix Issue #5345 (#5381) · 54683e60
      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.
      54683e60
  18. 08 Jan, 2019 1 commit
  19. 15 Dec, 2018 1 commit
  20. 29 Nov, 2018 1 commit
    • michaelbausor's avatar
      PHP: Add Enum methods for converting to/from strings (#5342) · 0b9af83d
      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
      0b9af83d
  21. 09 Nov, 2018 1 commit
  22. 07 Oct, 2018 1 commit
    • michaelbausor's avatar
      PHP: Add support for primitive types in setters (#5126) · 6a51c038
      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
      6a51c038
  23. 23 Sep, 2018 1 commit
    • Paul Yang's avatar
      Adopt upb change for timestamp and duration json to php (#5106) · 9bda1f19
      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.
      9bda1f19
  24. 09 Aug, 2018 1 commit
  25. 20 Jul, 2018 1 commit
  26. 16 Jul, 2018 1 commit
  27. 13 Jul, 2018 2 commits
  28. 10 Jul, 2018 1 commit
  29. 08 Jun, 2018 1 commit
    • Paul Yang's avatar
      Use legacy name in php runtime (#4741) · ce044817
      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
      ce044817
  30. 25 May, 2018 2 commits
    • Brent Shaffer's avatar
      PHP namespaces for nested messages and enums (#4536) · 2774e544
      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
      2774e544
    • Brent Shaffer's avatar
      PHP array constructors for protobuf messages (#4530) · c9b404d2
      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
      c9b404d2
  31. 24 May, 2018 2 commits
    • Brent Shaffer's avatar
      PHP namespaces for nested messages and enums (#4536) · 67379546
      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
      67379546
    • Brent Shaffer's avatar
      PHP array constructors for protobuf messages (#4530) · f1911f37
      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
      f1911f37
  32. 17 May, 2018 1 commit
  33. 11 May, 2018 1 commit
  34. 10 May, 2018 1 commit
  35. 30 Apr, 2018 1 commit
  36. 09 Apr, 2018 1 commit