Commit Graph

4895 Commits

Author SHA1 Message Date
Jisi Liu
34ebca0ca8 Adding missing imports for strdup 2017-08-11 13:01:28 -07:00
Jisi Liu
40d1855fe9 Fix mkdir 2017-08-11 12:52:45 -07:00
Jisi Liu
564f02c91e Make win32_io only for MSVC
This excludes cygwin and mingw from using the self implemented
functions.
2017-08-11 12:08:00 -07:00
Jisi Liu
7afa796bb9 Fix the declaration order in ming32 2017-08-11 11:45:41 -07:00
Jisi Liu
db125b8d3a Fixing io_win32 for MinGW32 2017-08-11 11:38:40 -07:00
Jisi Liu
d2f3adb3b3 Merge pull request #3481 from pherl/nowarning
Make no warning test stricter.
2017-08-10 14:23:48 -07:00
Jisi Liu
e8fc0661db Make no warning test stricter.
- Now it includes -Wextra except for unused-parameter.
- Removed gtest dependency
2017-08-10 10:47:06 -07:00
Jisi Liu
9adb4e8c2d Merge pull request #3478 from pherl/warning
Make code free of missing-field-initializers warnings
2017-08-10 10:24:58 -07:00
Jisi Liu
97d50e306e Make code free of missing-field-initializers warnings 2017-08-09 16:34:42 -07:00
Jisi Liu
3afcded28a Merge pull request #3461 from TeBoring/3.4.x
Merge master into 3.4.x
2017-08-07 11:47:29 -07:00
Feng Xiao
176713d6fb Merge pull request #3468 from vladmos/3.4.x
Make .bzl files compatible with future versions of Bazel
2017-08-07 11:07:39 -07:00
Vladimir Moskva
06a825c170 Make .bzl files compatible with future versions of Bazel 2017-08-07 20:04:00 +02:00
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
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
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