Commit Graph

5040 Commits

Author SHA1 Message Date
Bo Yang
8f4b8e430a Merge branch 'master' into 3.4.x 2017-08-05 10:42:29 -07:00
Paul Yang
f14703c933 Update commit id in Dockerfile to reflect change in #3391 (#3459) 2017-08-04 16:42:19 -07:00
Paul Yang
49b44bff2b Fix the bug in php c extension that setting one field can change another field's value. (#3455)
* Fix the bug in php c extension that setting one field can change another
field's value.

The reason is that previously, in c extension, it was assumed that the
order that fields were declared in php is the same as the order of
fields in upb. This is not true. Now, for every field in upb, we will
look up the actual property that is corresponding to the upb field.

* Cleanup pull request

* Fix indentation

* Port to php5

* Port with php7.1

* Port to zts
2017-08-04 16:35:49 -07:00
michaelbausor
21b0e5587c Update PHP descriptors (#3391)
* 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
2017-08-04 16:35:22 -07:00
Jie Luo
f5817b3056 PY26 tests compatibility
1, Some tests in reflection_test PY26 raise TypeError but other versions raise ValueError for convert negative long to unsigned
2, Change compare exception type to compare exception str for testDuplicateExtensionNumber. Original code raise 'Double registration of Extensions' is not an instance of (<type 'exceptions.AssertionError'>, <type 'exceptions.ValueError'>) for PY26 cpp implementation

t
2017-08-04 15:25:11 -07:00
Feng Xiao
1ab5adbdec Merge pull request #3456 from giorgioazzinnaro/patch-1
Update third party addons with ProfaneDB
2017-08-04 12:31:05 -07:00
Giorgio Azzinnaro
a3e17523b4 Update third party addons with ProfaneDB
I added my project ProfaneDB, it is a database for Protocol Buffers objects. Written in C++, it uses gRPC as an interface for other languages.
It is still work in progress, but I'd love to get some feedback on it while I progress!
2017-08-04 21:19:36 +02:00
Jie Luo
9150cd8603 Skip setUpClass which is newly added in python2.7 for python2.6 2017-08-04 10:50:24 -07:00
Jie Luo
d58df3b902 Add python 2.6 test back for cpp implementation. Json format issue was fixed in #869 2017-08-03 16:04:10 -07:00
Jisi Liu
c2f69d6fa2 Merge pull request #3450 from pherl/invalidoffset
Fix invalid offsetof warning.
2017-08-03 13:49:25 -07:00
Jisi Liu
e243fd8ab7 Merge pull request #3451 from pherl/fixtypo
Fix typo.
2017-08-03 11:20:45 -07:00
Jisi Liu
39a91d376a Fix typo. 2017-08-03 11:15:47 -07:00
Jisi Liu
4cbbf33b77 Fix invalid offsetof warning.
Use composition instead of inheritance for oneof default.
2017-08-03 11:13:25 -07:00
Paul Yang
25672c1757 Add getClass for php Descriptor in c extension (#3443) 2017-08-02 18:33:25 -07:00
Gerben Stavenga
7781784796 Add destructors for default instances to the shutdown code.
Verified test succeed under draconian heap checker
2017-08-02 18:25:28 -07:00
Jisi Liu
53ae6de18b Merge pull request #3442 from pherl/csharpversion
Bump csharp version
2017-08-02 13:28:15 -07:00
Jisi Liu
6c64f11778 Bump csharp version 2017-08-02 13:20:13 -07:00
Jisi Liu
e0288e7ec0 Merge pull request #3438 from pherl/changelog
Update change log
2017-08-02 11:48:40 -07:00
Ryan Gordon
9df89ccabc Fixing HHVM Compatibility (#3437) 2017-08-02 07:43:27 -07:00
Paul Yang
c15a3269f9 Expose descriptor API in php c extension (#3422) 2017-08-02 07:42:27 -07:00
Jisi Liu
8a5208fd37 Update change log 2017-08-01 15:47:26 -07:00
Jisi Liu
502624ff8b Merge pull request #3419 from pherl/3.4.x
Merge master into 3.4.x
2017-08-01 14:47:09 -07:00
Jisi Liu
d77c8c5e44 remove the duplication 2017-08-01 14:01:55 -07:00
Jisi Liu
bcf17332bd Adding the missing header 2017-08-01 13:51:26 -07:00
Jisi Liu
ebeb472c1e Export functions in io_win32.h in win DLL build
Previous code duplicates io_win32.cc in sources of all the libraries
that include io_win32.h header.
2017-08-01 13:23:34 -07:00
Tony Wong
be73938d72 Change divideInt64ToInt32 to static (#3436)
divideInt64ToInt32 is called statically from protobuf/php/src/Google/Protobuf/Internal/CodedOutputStream.php
(the only reference)
This causes fatal error in PHP 7.1 (32-bit only because 64-bit doesn't use this function)
2017-08-01 13:22:47 -07:00
Brent Shaffer
d32f5b4de3 Removes unnecessary pass-by-references in PHP internal classes (#3433) 2017-08-01 09:42:46 -07:00
Feng Xiao
072431452a Merge pull request #3429 from king6cong/master
Add classpath for java example Makefile
2017-07-31 10:59:56 -07:00
Feng Xiao
d6bd959761 Merge pull request #3406 from ax3l/bg-3.4-cmake-pkgconfig
CMake: Install .pc Files (Backport: 3.4)
2017-07-31 10:45:36 -07:00
king6cong
547d76ed8e Add classpath for java example Makefile 2017-07-31 14:53:05 +08:00
Thomas Van Lenten
9b505a92bf Merge pull request #3421 from thomasvl/update_comment
Update the comment on the message_type to cover what it should be.
2017-07-26 18:48:19 -04:00
Thomas Van Lenten
9a4692d8af Update the comment on the message_type to cover what it should be. 2017-07-26 17:07:01 -04:00
Thomas Van Lenten
5eb95efa81 Merge pull request #3420 from thomasvl/objc_proto2_conformance
Objc proto2 conformance test support
2017-07-26 16:28:14 -04:00
Thomas Van Lenten
3caf9fd00a Review feedback.
- Better error message for unknown messageType.
- Remove unneeded if.
2017-07-26 16:24:05 -04:00
Thomas Van Lenten
c2831a346c Add the proto2 message conformance support for ObjC. 2017-07-26 15:58:07 -04:00
Thomas Van Lenten
9fd5e59c97 Generate the proto2 test file and link it in for ObjC. 2017-07-26 15:45:23 -04:00
Thomas Van Lenten
21800ff84f Add a objc_class_prefix to test_messages_proto3.proto.
Both test_messages_proto3.proto & test_messages_proto2.proto define
message ForeignMessage {...} and enum ForeignEnum {...} but since
objc doesn't use the proto package in the naming, these end up
conflicting.

Adding the objc_class_prefix option to the proto3 file ensure the generated
objc types are all unique.
2017-07-26 15:44:02 -04:00
Jisi Liu
19b8c8bfd3 Update conformance tests again. 2017-07-25 16:08:17 -07:00
Adam Cozzette
8d5f2c57e8 Merge pull request #3410 from adam-26/1745
Fix issue #1745 - javascript allow dot in filename
2017-07-25 15:52:25 -07:00
Jisi Liu
12c186f7c6 Fix makefile.am 2017-07-25 14:38:00 -07:00
Jisi Liu
de6debcf2b Fix conformance tests 2017-07-25 14:37:37 -07:00
Jisi Liu
e177739fa2 Fix build files 2017-07-25 14:37:19 -07:00
Jisi Liu
9b8f6589f2 Remove dependency on guava 20 2017-07-25 13:46:17 -07:00
Jisi Liu
d974cc2e9a Update conformance tests 2017-07-25 12:22:32 -07:00
Jisi Liu
f39d4de94f Merge remote-tracking branch 'origin/master' into merge 2017-07-25 12:00:29 -07:00
Jisi Liu
759245a49a Merge from master 2017-07-25 11:52:33 -07:00
Sergey
bb8664419b need for php math functions. used in mergeFromJsonString (#3409) 2017-07-25 10:40:10 -07:00
Adam Cozzette
e9f4e8e4f5 Merge pull request #3407 from bklarson/master
Add declaration for AddDescriptorsImpl()
2017-07-25 06:44:14 -07:00
Paul Yang
451d061141 Fix cycle dependency for repeated field not collected by gc (#3399) 2017-07-25 00:49:16 -07:00
Jisi Liu
4bff88e0fb Merge pull request #3413 from pherl/3.4.x
Update version number for 3.4.0
2017-07-25 00:16:35 -07:00