Paul Yang
56988bee34
No free when construct was not done ( #6483 )
...
* No free when construct was not done
This fix the segfault when some other error happens
* Add more tests
* Use Sub to avoid printing too much
5 years ago
Jie Luo
d1eeb852fc
compatibility test between last released and current for java python php ( #6441 )
...
* compatibility tests between last released and the current version
5 years ago
Paul Yang
54288a01ce
Rename get/setXXXValue to get/setXXXUnwrapped ( #6295 )
6 years ago
Paul Yang
815ff7e1fb
Revert "Append field number to accessors if there is conflict ( #6169 )" ( #6282 )
...
This reverts commit 9a8ef05a34
.
6 years ago
Paul Yang
7f84a94366
Make php message class final to avoid mocking ( #6277 )
...
* 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
6 years ago
Leonard Hecker
43307d4da0
php: Fix formatting of Duration ( #6155 )
...
* 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.
6 years ago
Paul Yang
640423f157
Change int64 json encoding to be string for php and ruby ( #6251 )
...
* Change int64 json encoding to be string for php and ruby
* Fix ruby test
* Sync upb change
6 years ago
Hao Nguyen
638720274b
Update version to 3.9.0
6 years ago
Paul Yang
95c207f24e
Add use_nested to internalAddGeneratedFile for php implementation ( #6117 )
6 years ago
Paul Yang
9a8ef05a34
Append field number to accessors if there is conflict ( #6169 )
...
Previously, foo_value and foo (wrapper field) will both have get/setFooValue
6 years ago
Hao Nguyen
582927ae2a
Update generated files
6 years ago
Hao Nguyen
b0d648664d
Update protobuf version
6 years ago
Hao Nguyen
46d5cc7de5
Revert "Revert "Add new file to package.xml ( #6116 )""
...
This reverts commit 783971e872
.
Revert an accidental revert!
6 years ago
Hao Nguyen
2352a30e66
Revert "Update protobuf version"
...
This reverts commit 6d96493b3147a0f253f7eef2447785e19361afe3.
6 years ago
Hao Nguyen
783971e872
Revert "Add new file to package.xml ( #6116 )"
...
This reverts commit c40018e52d
.
6 years ago
Hao Nguyen
6d96493b31
Update protobuf version
6 years ago
Paul Yang
c40018e52d
Add new file to package.xml ( #6116 )
6 years ago
Paul Yang
7597f8ad24
Custom mktime to fix issue on mac ( #6118 )
...
* Custom mktime to fix issue on mac
* Remove succeeded tests from failure list
6 years ago
Hao Nguyen
a56b529832
Update php/release.sh to be executable and create a new branch for the new version
6 years ago
Hao Nguyen
37a89f8e1a
Update version to 3.8.0
6 years ago
Hao Nguyen
3d69bad4b2
Update generated proto and remove a test from failure_list
6 years ago
Bo Yang
cd044e9cbb
Sync latest upb changes
6 years ago
Paul Yang
6973c3a504
Update version number to 3.7.1 ( #5947 )
...
* Update version number to 3.7.1
* Update version number in port_def.inc
6 years ago
Benjamin Peterson
5939bc3619
Fix "the the".
6 years ago
Paul Yang
ba42cb53d9
Allow bytes field to be longer than 16000 bytes ( #5924 )
...
* Allow bytes field to be longer than 16000 bytes
* Remove empty line
6 years ago
Paul Yang
57b6597f46
Replace strptime with custom implementation ( #5906 )
...
* Replace strptime with custom implementation
* Fix ruby strptime
* Fix test
* Fix ruby conformance test
* Use mktime
* Remove EmptyFieldMask from failed conformance test list
6 years ago
David Supplee
d65b8647f2
Add terminating character to zend_lookup_class call ( #5871 ) ( #5885 )
...
* add terminating character
* adjust name length input
* add test cases
* correct script name
* Misc fixes
* add new script to EXTRA_DIST list
6 years ago
Paul Yang
207d01daa1
Remove GPBWrapperUtil from generated code ( #5880 )
...
* Remove GPBWrapperUtil from generated code
* Add newline
6 years ago
David Supplee
93533f780b
Add terminating character to zend_lookup_class call ( #5871 )
...
* add terminating character
* adjust name length input
* add test cases
* correct script name
* Misc fixes
* add new script to EXTRA_DIST list
6 years ago
Paul Yang
4b145b1c7f
Parse nested listvalue in json for ruby ( #5867 )
...
* Add conformance test for nested listvalue
* Fix upb for parsing repeated Value/ListValue
* Add failed repeated ListValue conformance test into php failure list
6 years ago
Joshua Haberman
f5e8ee41dd
PHP updates for new upb APIs ( #5604 )
6 years ago
Paul Yang
582743bf40
Update version number to 3.7.0 ( #5793 )
...
* Update version number to 3.7.0
* Add php/releash.sh to Makefile.am
* Make cpp_distcheck exit on fail
6 years ago
Yilun Chong
af8b91b828
fix csharp by regenerate descriptor
6 years ago
Paul Yang
0aad5339ca
Add a script to mirror php changes to protobuf-php ( #5778 )
...
* Add a script to mirror php changes to protobuf-php
* Create tag
6 years ago
Paul Yang
5d8cd3b895
Date and time need to be before version ( #5777 )
6 years ago
Bo Yang
b52754b719
Update version to 3.7.0rc3
6 years ago
Xiang Dai
e479410564
delete all duplicate empty blanks ( #5758 )
...
Signed-off-by: Xiang Dai <764524258@qq.com>
6 years ago
Paul Yang
c7b3392201
Update version to 3.7.0 ( #5749 )
...
* Update version to 3.7.0
* Update version number for java bom
6 years ago
michaelbausor
3c387ea7e5
PHP: Exclude repeated and map fields from normalization in constructor ( #5723 )
...
* 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
6 years ago
michaelbausor
3bf05b88ea
PHP: Exclude repeated and map fields from normalization in constructor ( #5723 )
...
* 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
6 years ago
Paul Yang
43f8ae8708
Fix oneof message in array constructor ( #5727 )
6 years ago
Paul Yang
a1332ae3ce
RC release should use beta for api version ( #5695 )
6 years ago
Paul Yang
15fc6401b6
Update php version number to 3.7.0RC2 ( #5666 )
...
* Update php version number to 3.7.0RC2
* Update version number in source code
6 years ago
Adam Cozzette
1ee15baefc
Updated version to 3.7.0rc2
6 years ago
Bo Yang
96029f3c4a
Convert integer to string if field is string field in json
...
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.
6 years ago
Paul Yang
3cae8e4467
Default values should also be serialized for json map key/value ( #5643 )
6 years ago
Paul Yang
a21caa237a
Default values should also be serialized for json map key/value ( #5643 )
6 years ago
Paul Yang
53a1d49633
Allow internalAddGeneratedFile to depend on new nested message name ( #5629 )
...
Previously, internalAddGeneratedFile has to depend on old non-nested name for sub-messages.
This creates a hard dependency on old generated code for compatibility usage.
If user's code has custome error handler, the deprecation warning in the old generated code
will also be thrown (even though users haven't explicitly depended on the old message name).
To fix this problem, this change added an additional flag in the generated code to tell run
time that it's safe to use new message name. In this way, internalAddGeneratedFile can safely
depend on new name and don't trigger unnecessary deprecation warning.
6 years ago
Hao Nguyen
d5be2baa46
Update version to 3.7.0
6 years ago
Paul Yang
d750fbf648
Fix more issues for reference values ( #5613 )
...
* Fix more issues for reference values
* Revert change in gdb test
* Add more tests
6 years ago