Commit graph

25 commits

Author SHA1 Message Date
Mike Kruskal
232ecf4a6f Bump protobuf to latest upb version.
PiperOrigin-RevId: 502022138
2023-01-14 00:11:12 -08:00
Eric Salo
b7d54ace5e switch PHP and Ruby over to the new upb_Map_Delete()
We would like for upb_Map_Delete() to optionally return the deleted value.
Unfortunately this will require several steps since we are crossing repos.
Step #4: advance the upb version used by protobuf and update PHP/Ruby accordingly.

PiperOrigin-RevId: 498426185
2022-12-29 12:01:16 -08:00
Eric Salo
b598b2dd1f switch PHP and Ruby to using upb_Map_Delete2()
We would like for upb_Map_Delete() to optionally return the deleted value.
Unfortunately this will require several steps since we are crossing repos.
Step #2: Point PHP and Ruby at the new temporary function.

point the protobuf repo at latest upb
regenerate the amalgamation files

PiperOrigin-RevId: 497310441
2022-12-22 23:15:25 -08:00
Protobuf Team Bot
9238c4843a Add debug_redact field option to protobuf.
PiperOrigin-RevId: 496016877
2022-12-16 20:03:33 -08:00
Mike Kruskal
6b87d6f445 Add a deprecated message and enum option for restoring legacy json field validation.
See https://github.com/protocolbuffers/protobuf/pull/10750 for more information.

PiperOrigin-RevId: 495354518
2022-12-14 10:38:44 -08:00
Eric Salo
1050599cb0 update protobuf_deps.bzl to pull in the latest upb
PiperOrigin-RevId: 494793478
2022-12-12 12:17:48 -08:00
Eric Salo
3f36a91442 update PHP and Ruby to use the new accessors, delete the old ones
PiperOrigin-RevId: 493109199
2022-12-05 14:14:15 -08:00
Mike Kruskal
aba04743d2 Fix java_linkage_monitor test.
This was silently breaking because we didn't fail on errors in the test script.  The upb version is also bumped to pull in improvements for system_python that fix the underlying issue (python 3.5 doesn't work with our pip dependencies).

PiperOrigin-RevId: 492526855
2022-12-02 12:09:05 -08:00
Mike Kruskal
3bc50497eb Bump upb version and refactor python compatibility.
This pulls in updates to system_python, which allows for better handling of our non-hermetic setup.  Specifically, our python tests are marked incompatible on systems without a python installation.  This will cause them to get skipped by wildcard expansions (which is why we add 1 explicit target to the kokoro builds).

PiperOrigin-RevId: 492286518
2022-12-01 13:36:49 -08:00
Mike Kruskal
04e813577c Bump upb version
PiperOrigin-RevId: 490544186
2022-11-23 11:09:23 -08:00
Eric Salo
8809a113bc update Ruby to use the newer upb_Map_Next() iterator
also update protobuf_defs.bzl to point to the latest upb commit, to pull in upb_Map_Next()

PiperOrigin-RevId: 490052254
2022-11-21 13:02:36 -08:00
Mike Kruskal
9cf9db8831 Refresh ruby/php amalgamation files after upb bump
PiperOrigin-RevId: 486294598
2022-11-04 21:26:58 -07:00
Joshua Haberman
7755973302
Added staleness test to keep PHP copy of upb in sync with the upb repo (#10694)
* Updated to new upb.

* Updated to latest upb, which fixes 32-bit PHP!
2022-10-03 11:13:05 -07:00
Joshua Haberman
349d74d92e
Updated PHP upb, and utf8_range for Ruby/PHP (#9585)
* Updated PHP to the new version of upb.

This is a large change, as the upb API surface has been
renamed to follow Google style more closely.

* Fixed utf8_range.

* Updated Ruby for new utf8_range.

* Picked up new upb for PHP, with spelling fixes.

* Fixed the 32-bit build.
2022-03-05 11:55:57 -08:00
Joshua Haberman
9d578a3a9c Ported Ruby to ABSL wyhash. 2021-08-02 15:32:01 -07:00
Joshua Haberman
7611164792
Updated upb version and fixed PHP to not get unset message field. (#8621)
* Updated upb version and fixed PHP to not get unset message field.

* Updated changelog.

* Fixed preproc test to handle old versions of Clang withot __has_attribute().

* A second try at fixing __has_attribute().

* Copy __has_attribute() fix to cc file also.

* Updated failure list for PHP for fixed test.
2021-05-17 15:27:05 -07:00
Joshua Haberman
cf28f28347
Updated upb to allow nonzero offset minutes in JSON timestamps. (#8258)
* Updated upb to allow nonzero offset minutes in JSON timestamps.

This is to pick up https://github.com/protocolbuffers/upb/pull/367

* Reverted error message change.

* Fixed quote chars.
2021-02-03 17:59:10 -08:00
Joshua Haberman
d5079ed7db
Fixed PHP to support field numbers >=2**28. (#8235) 2021-01-27 10:12:59 -08:00
Joshua Haberman
314ce3c8a0 PHP: Fix in upb for 32-bit platforms. 2020-11-02 21:46:37 -08:00
Joshua Haberman
f65bcca31d Added extra files to Makefile.am and fixed spelling errors. 2020-11-02 09:44:46 -08:00
Joshua Haberman
a6985e598c New version of upb, and a new hash function wyhash in third_party. 2020-11-02 08:09:11 -08:00
Adam Cozzette
58f4260e8e Merged 3.13.x into master 2020-08-17 11:06:11 -07:00
Peter Newman
e2cc2de304
Fix lots of spelling errors (#7751)
* Fix a typo

* Fix lots of spelling errors

* Fix a few more spelling mistakes

* s/parsable/parseable/

* Don't touch the third party files

* Cloneable is the preferred C# term

* Copyable is the preferred C++ term

* Revert "s/parsable/parseable/"

This reverts commit 534ecf7675.

* Revert unparseable->unparsable corrections
2020-08-10 11:08:25 -07:00
Paul Yang
69c4bc5674 Updated upb to pick up several bugfixes (#7740)
* Updated upb to pick up several bugfixes. This fixes most conformance failures.

* Updated golden file, now that we are serializing as packed by default.

* Set "packed" properly: it is on by default for packable fields in proto3.

* Updated failure list for PHP now that we properly respect "packed".

* Temporarily disable encode_decode_test

Co-authored-by: Joshua Haberman <jhaberman@gmail.com>
2020-08-07 14:44:49 -07:00
Joshua Haberman
ffb2b53834
Remove old PHP extension (#7695)
* Removed references to legacy class names from generated code.

* Removed old PHP extension in favor of new extension. This drops PHP5 compat.

* Updated failure lists for things fixed by the new extension.

* Updated Makefile.am for new file list.

* Fix distcheck.
2020-07-09 11:06:24 -07:00
Renamed from php/ext/google/protobuf2/php-upb.h (Browse further)