Joshua Haberman
d69f482883
Fixed message equality in cases where the message type is different.
...
If the message types are different, equality comparison must return
false.
4 years ago
Adam Cozzette
fd8aabf32d
Update protobuf version
4 years ago
Adam Cozzette
e5c067f81b
Updated CHANGES.txt and PHP changelog for 3.15.4 release
4 years ago
Antony Dovgal
aa41d9005b
read_property() handler is not supposed to return NULL
...
NULL is never expected as a result of read_property() handler,
it should return &EG(uninitialized_zval) if there is no such property in
the object
4 years ago
Joshua Haberman
cf7d81f88c
Merge pull request #8363 from haberman/ruby-nil-fix
...
Fixed SEGV when users pass nil messages. This also disallows `nil` in RepeatedField or Map.
4 years ago
Joshua Haberman
7d63b996e1
Removed compatibility test that tries to append "nil" to repeated field.
4 years ago
Florian Simon
1add7a7bd6
Create a CMake option to control whether or not RTTI is enabled
...
This is useful for Conan recipes that build Protobuf, in which
whatever we want to enable has to be enabled in the initial command line.
Without this, the people maintaining the recipe have to patch the CMake
setup of Protobuf before building the binaries.
Closes #5541
4 years ago
Joshua Haberman
dfa54577d6
[Ruby] Fixed SEGV when users pass nil messages.
4 years ago
Adam Cozzette
983d115bd9
Update protobuf version
4 years ago
Adam Cozzette
eb542e606b
Updated CHANGES.txt for 3.15.3 release
4 years ago
Joshua Haberman
80ec787928
Merge pull request #8341 from haberman/ruby-2.5-gc
...
Ruby <2.7now uses WeakMap too, which prevents memory leaks.
4 years ago
Joshua Haberman
9879f423ff
Ruby <2.7now uses WeakMap too, which prevents memory leaks.
...
Ruby <2.7 does not allow non-finalizable objects to be WeakMap
keys: https://bugs.ruby-lang.org/issues/16035
We work around this by using a secondary map for Ruby <2.7 which
maps the non-finalizable integer to a distinct object.
For now we accept that the entries in the secondary map wil never
be collected. If this becomes a problem we can perform a GC pass
every so often that looks at the contents of the object cache to
decide what can be deleted from the secondary map.
4 years ago
Adam Cozzette
d7e943b8d2
Update protobuf version
4 years ago
Adam Cozzette
1af4657b80
Updated CHANGES.txt
4 years ago
Yuriy Chernyshov
09f94e7311
Fix PROTOBUF_CONSTINIT macro redifinition
...
The #ifdef block is duplicated with the above (which was fixed in 3.15.1).
It would be great to have this fix backported to 3.15.1 (and released as 3.15.2).
4 years ago
Joshua Haberman
2ff31d34aa
Merge pull request #8330 from haberman/rubyfix
...
[Ruby] Fix for FieldDescriptor.get(msg).
4 years ago
Joshua Haberman
4e3ea74e42
[Ruby] Fix for FieldDescriptor.get(msg).
...
This fix is similar to the previous bug found in
Message.[]. The fix is the same: we need to handle
arrays and maps properly.
Fixes: https://github.com/protocolbuffers/protobuf/issues/8325
4 years ago
Adam Cozzette
052dc799d2
Update protobuf version
4 years ago
Adam Cozzette
24d8a554ea
Updated CHANGES.txt
4 years ago
Adam Cozzette
d721e36ecc
Made some small fixes for MinGW and for C++20 with GCC
...
Our use of constinit does not seem to work with GCC yet (see
https://github.com/protocolbuffers/protobuf/issues/8310 ), so this
commit disables it on GCC for now.
This commit also updates mutex.h to work around the fact that MinGW's
std::mutex apparently does not have a constexpr constructor. We already
have this kind of workaround for MSVC, so we can just use the same
workaround.
4 years ago
Joshua Haberman
b12ab0cf53
Merge pull request #8320 from haberman/ruby-duration-fix
...
[Ruby] Fix for truncating behavior when converting Float to Duration.
4 years ago
Joshua Haberman
3b3aac95a6
[Ruby] Fix for truncating behavior when converting Float to Duration.
4 years ago
Joshua Haberman
4f961c8a70
Merge pull request #8313 from haberman/ruby-crash-fix
...
[Ruby] Bugfix for Message.[] for repeated or map fields.
4 years ago
Joshua Haberman
256f1327ea
[Ruby] Bugfix for Message.[] for repeated or map fields.
4 years ago
Adam Cozzette
ae50d9b990
Update protobuf version
4 years ago
Adam Cozzette
8260126500
Update protobuf version
4 years ago
Yuhanun Citgez
c741c46604
Resovled issue in the .pb.cc files
4 years ago
Yuhanun Citgez
eef276412e
Resolved an issue where NO_DESTROY and CONSTINIT were in incorrect order
4 years ago
Adam Cozzette
0040102e6f
Updated collect_all_artifacts.sh for Ubuntu Xenial
4 years ago
Adam Cozzette
26cb6a7a6d
Delete root-owned files in Kokoro builds
...
Some of our Kokoro builds have been failing because Kokoro is unable to
copy root-owned files when the build is complete. This commit fixes the
problem by deleting these files at the end.
4 years ago
Brecht Sanders
1e924efa90
Update port_def.inc
...
Fix for Windows build with MinGW-w64 compiler which has __has_attribute but has issues with __attribute__((weak)).
4 years ago
Brecht Sanders
9a80cf1225
Update coded_stream.h
...
Fix for Windows build with MinGW-w64 compiler. Windows is assumed to always be little endian.
4 years ago
Joshua Haberman
a97c4f4f2c
Merge pull request #8276 from haberman/php-warning
...
Added more information to "file already loaded" warning.
4 years ago
Joshua Haberman
44cd75d215
Merge pull request #8282 from haberman/changelog
...
Added to the changelog entries for Ruby & PHP.
4 years ago
Joshua Haberman
c59e7f1c0c
Added to the changelog entries for Ruby & PHP.
4 years ago
Adam Cozzette
d777155d81
Updated collect_all_artifacts.sh to avoid installing apt-transport-https
...
The installation of apt-transport-https is failing and causing this
script to exit early. I suspect the package is no longer needed since
recent versions have moved it into the apt package, so this change
updates the script to stop trying to install apt-transport-https.
4 years ago
Joshua Haberman
db66c95eaf
Added more information to "file already loaded" warning.
...
Also changed it to zend_error() so it is more easily suppressed.
4 years ago
Adam Cozzette
66e5185780
Added PHP changes for 3.15.0 into package.xml
4 years ago
Adam Cozzette
42fea44a9c
Updated CHANGES.txt for the 3.15.0 release
4 years ago
Adam Cozzette
e9f2ef308c
Update protobuf version
4 years ago
Paul MARS
59b3d97f6d
Reserve extension id for protoc-gen-psql & protoc-gen-sanitize
4 years ago
Joshua Haberman
a530dbe50c
Merge pull request #8262 from haberman/sync-stage
...
Integrate from Piper for C++, Java, and Python
4 years ago
Joshua Haberman
e8aa635397
Tweak our JavaScript rewrites a bit to handle jspb.* imports.
4 years ago
Joshua Haberman
beb70bb83e
Change is_trivially_copy_assignable -> is_trivial too.
4 years ago
Joshua Haberman
fc1cfb0174
Also change is_trivially_copy_constructible to std::is_trivial.
4 years ago
Joshua Haberman
fae6773539
Fixed misspelling.
4 years ago
Joshua Haberman
b74892e9c3
Replace is_trivially_default_constructible with is_trivial for old libstdc++.
4 years ago
Joshua Haberman
7a92a5ab24
Added another missing CHANGES.txt entry.
4 years ago
Joshua Haberman
84320bf8e8
Added missing changelog entry.
4 years ago
Joshua Haberman
9194426bce
Added CHANGES.txt entries.
4 years ago