1. 13 Jul, 2018 2 commits
  2. 10 Jul, 2018 1 commit
  3. 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
  4. 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
  5. 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
  6. 11 May, 2018 1 commit
  7. 30 Apr, 2018 1 commit
  8. 09 Apr, 2018 2 commits
  9. 11 Dec, 2017 1 commit
  10. 07 Dec, 2017 1 commit
    • Paul Yang's avatar
      Recursively clear unknown fields in submessages. (#3982) · c370f88f
      Paul Yang authored
      * 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.
      c370f88f
  11. 30 Nov, 2017 1 commit
  12. 13 Nov, 2017 1 commit
  13. 04 Nov, 2017 1 commit
    • Paul Yang's avatar
      Fix php well known type conformance tests (#3828) (#3840) · 2df47269
      Paul Yang authored
      * 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
      2df47269
  14. 03 Nov, 2017 1 commit
    • Paul Yang's avatar
      Fix php well known type conformance tests (#3828) · bcda919c
      Paul Yang authored
      * 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
      bcda919c
  15. 18 Oct, 2017 1 commit
  16. 09 Oct, 2017 1 commit
    • Paul Yang's avatar
      Reserve unknown fields in php (#3659) · 60327468
      Paul Yang authored
      * 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
      60327468
  17. 22 Sep, 2017 1 commit
  18. 14 Sep, 2017 1 commit
  19. 11 Sep, 2017 1 commit
  20. 10 Sep, 2017 1 commit
  21. 08 Sep, 2017 1 commit
  22. 30 Aug, 2017 1 commit
  23. 21 Aug, 2017 1 commit
  24. 04 Aug, 2017 1 commit
    • michaelbausor's avatar
      Update PHP descriptors (#3391) · 21b0e558
      michaelbausor authored
      * 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
      21b0e558
  25. 02 Aug, 2017 1 commit
  26. 01 Aug, 2017 2 commits
  27. 19 Jul, 2017 1 commit
  28. 18 Jul, 2017 2 commits
    • Jisi Liu's avatar
      Update csharp and php descriptor · 86975301
      Jisi Liu authored
      86975301
    • Matt A's avatar
      Support PHP generic services (#3269) · 9e745f77
      Matt A authored
      * 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
      9e745f77
  29. 17 Jul, 2017 1 commit
  30. 13 Jul, 2017 1 commit
  31. 30 Jun, 2017 1 commit
  32. 27 Jun, 2017 1 commit
    • Brent Shaffer's avatar
      adds PHPDoc @return and @param for getters and setters respectively (#3131) · 12acbc26
      Brent Shaffer authored
      * 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
      12acbc26
  33. 20 Jun, 2017 2 commits
    • Paul Yang's avatar
    • Ryan Gordon's avatar
      Switch to addEnumType to fix fatal error (#3225) · 703cd8e1
      Ryan Gordon authored
      * 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
      703cd8e1