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.
2019-06-18 10:31:50 -07:00
Hao Nguyen
634d704d23
Merge branch '3.8.x' into 3.8.x-201905311515
2019-05-31 15:18:39 -07:00
Hao Nguyen
09745575a9
Merge pull request #6160 from haon4/3.8.x-20190521140707
...
Update protobuf version to 3.8.0
2019-05-24 11:06:49 -07:00
Paul Yang
95c207f24e
Add use_nested to internalAddGeneratedFile for php implementation ( #6117 )
2019-05-24 10:01:58 -07:00
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
2019-05-24 10:00:09 -07:00
Hao Nguyen
582927ae2a
Update generated files
2019-05-21 16:42:33 -07:00
Hao Nguyen
b0d648664d
Update protobuf version
2019-05-21 14:07:13 -07:00
Hao Nguyen
46d5cc7de5
Revert "Revert "Add new file to package.xml ( #6116 )""
...
This reverts commit 783971e872
.
Revert an accidental revert!
2019-05-21 13:50:54 -07:00
Hao Nguyen
2352a30e66
Revert "Update protobuf version"
...
This reverts commit 6d96493b31
.
2019-05-21 13:49:06 -07:00
Hao Nguyen
783971e872
Revert "Add new file to package.xml ( #6116 )"
...
This reverts commit c40018e52d
.
2019-05-21 13:48:34 -07:00
Hao Nguyen
6d96493b31
Update protobuf version
2019-05-21 13:31:01 -07:00
Paul Yang
c40018e52d
Add new file to package.xml ( #6116 )
2019-05-17 15:19:46 -07:00
Paul Yang
7597f8ad24
Custom mktime to fix issue on mac ( #6118 )
...
* Custom mktime to fix issue on mac
* Remove succeeded tests from failure list
2019-05-09 20:51:35 -07:00
Hao Nguyen
a56b529832
Update php/release.sh to be executable and create a new branch for the new version
2019-05-06 12:58:01 -07:00
Hao Nguyen
37a89f8e1a
Update version to 3.8.0
2019-04-23 16:14:52 -07:00
Hao Nguyen
3d69bad4b2
Update generated proto and remove a test from failure_list
2019-04-10 13:33:56 -07:00
Bo Yang
cd044e9cbb
Sync latest upb changes
2019-03-27 18:15:24 +00:00
Adam Cozzette
8645d893ab
Merge branch '3.7.x' into merge-3-7-x
2019-03-26 14:32:20 -07:00
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
2019-03-26 09:30:12 -07:00
Benjamin Peterson
5939bc3619
Fix "the the".
2019-03-25 13:38:06 -07:00
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
2019-03-25 10:51:18 -07:00
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
2019-03-19 22:27:13 -07:00
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
2019-03-13 13:31:55 -07:00
Paul Yang
207d01daa1
Remove GPBWrapperUtil from generated code ( #5880 )
...
* Remove GPBWrapperUtil from generated code
* Add newline
2019-03-12 22:33:13 -07:00
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
2019-03-12 21:30:06 -07:00
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
2019-03-12 10:56:58 -07:00
Joshua Haberman
f5e8ee41dd
PHP updates for new upb APIs ( #5604 )
2019-03-06 12:04:17 -08:00
Bo Yang
cb6fa92ee8
Merge branch '3.7.x'
2019-03-04 10:18:18 -08:00
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
2019-02-28 12:55:14 -08:00
Yilun Chong
af8b91b828
fix csharp by regenerate descriptor
2019-02-26 13:07:59 -08:00
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
2019-02-26 09:25:37 -08:00
Paul Yang
5d8cd3b895
Date and time need to be before version ( #5777 )
2019-02-25 15:13:59 -08:00
Bo Yang
b52754b719
Update version to 3.7.0rc3
2019-02-22 11:31:48 -08:00
Xiang Dai
e479410564
delete all duplicate empty blanks ( #5758 )
...
Signed-off-by: Xiang Dai <764524258@qq.com>
2019-02-20 19:28:50 -08:00
Paul Yang
c7b3392201
Update version to 3.7.0 ( #5749 )
...
* Update version to 3.7.0
* Update version number for java bom
2019-02-19 15:54:45 -08:00
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
2019-02-15 16:18:27 -08:00
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
2019-02-15 16:16:42 -08:00
Paul Yang
43f8ae8708
Fix oneof message in array constructor ( #5727 )
2019-02-14 08:57:12 -08:00
Paul Yang
a1332ae3ce
RC release should use beta for api version ( #5695 )
2019-02-07 13:14:50 -08:00
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
2019-02-01 12:31:44 -08:00
Adam Cozzette
1ee15baefc
Updated version to 3.7.0rc2
2019-01-30 21:08:04 -08:00
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.
2019-01-28 20:57:51 +00:00
Paul Yang
3cae8e4467
Default values should also be serialized for json map key/value ( #5643 )
2019-01-28 19:30:10 +00:00
Paul Yang
a21caa237a
Default values should also be serialized for json map key/value ( #5643 )
2019-01-28 11:25:52 -08:00
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.
2019-01-24 19:10:00 -08:00
Hao Nguyen
d5be2baa46
Update version to 3.7.0
2019-01-24 10:23:02 -08:00
Paul Yang
d750fbf648
Fix more issues for reference values ( #5613 )
...
* Fix more issues for reference values
* Revert change in gdb test
* Add more tests
2019-01-23 12:44:20 -08:00
Paul Yang
7f42d6d0bc
Fix empty FieldMask json encoding/decoding ( #5605 )
...
* Fix empty FieldMask json encoding/decoding
* Add failed test to python's conformance failure list
2019-01-22 15:35:12 -08:00
Paul Yang
1069565a68
Fix c extension doesn' allow message reference in array ( #5599 )
...
* Fix c extension doesn' allow message reference in array
* Fix array constructor handling reference of array.
* Change test name
2019-01-22 14:02:44 -08:00
Joshua Haberman
dd7127d23d
Fixed compile warnings for PHP extension. ( #5589 )
...
* Fixed compile warnings for PHP extension.
* Fixed some compile errors on PHP <7 and with TSR enabled.
* One more fix for TSRM builds.
2019-01-18 15:05:57 -08:00