1. 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
  2. 17 May, 2018 1 commit
  3. 11 May, 2018 1 commit
  4. 10 May, 2018 1 commit
  5. 30 Apr, 2018 1 commit
  6. 09 Apr, 2018 2 commits
  7. 11 Dec, 2017 1 commit
  8. 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
  9. 30 Nov, 2017 1 commit
  10. 15 Nov, 2017 1 commit
  11. 13 Nov, 2017 1 commit
  12. 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
  13. 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
  14. 30 Oct, 2017 1 commit
  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. 06 Oct, 2017 1 commit
    • Paul Yang's avatar
      Add well known types to php runtime. (#3697) · 77f64bb7
      Paul Yang authored
      * 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
      77f64bb7
  18. 22 Sep, 2017 1 commit
  19. 21 Sep, 2017 1 commit
  20. 14 Sep, 2017 1 commit
  21. 11 Sep, 2017 1 commit
  22. 10 Sep, 2017 1 commit
  23. 08 Sep, 2017 1 commit
  24. 05 Sep, 2017 1 commit
  25. 31 Aug, 2017 1 commit
  26. 30 Aug, 2017 1 commit
  27. 25 Aug, 2017 1 commit
    • Paul Yang's avatar
      Add any support in php runtime. (#3486) · c7457ef6
      Paul Yang authored
      * 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
      c7457ef6
  28. 21 Aug, 2017 1 commit
  29. 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
  30. 02 Aug, 2017 1 commit
  31. 01 Aug, 2017 2 commits
  32. 19 Jul, 2017 1 commit
  33. 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
  34. 17 Jul, 2017 1 commit
  35. 13 Jul, 2017 1 commit
  36. 30 Jun, 2017 1 commit