Skip to content

Commit

Permalink
Merge pull request #8000 from haberman/php-upb-update
Browse files Browse the repository at this point in the history
[PHP] New version of upb, and a new hash function wyhash in third_party.
  • Loading branch information
haberman committed Nov 3, 2020
2 parents b5d2cc0 + 579aa89 commit 1dd4834
Show file tree
Hide file tree
Showing 13 changed files with 1,815 additions and 1,690 deletions.
3 changes: 3 additions & 0 deletions Makefile.am
Expand Up @@ -791,6 +791,7 @@ php_EXTRA_DIST= \
php/ext/google/protobuf/wkt.inc \
php/generate_descriptor_protos.sh \
php/phpunit.xml \
php/prepare_c_extension.sh \
php/release.sh \
php/src/GPBMetadata/Google/Protobuf/Any.php \
php/src/GPBMetadata/Google/Protobuf/Api.php \
Expand Down Expand Up @@ -1391,6 +1392,8 @@ EXTRA_DIST = $(@DIST_LANG@_EXTRA_DIST) \
python/release/wheel/README.md \
third_party/six.BUILD \
third_party/zlib.BUILD \
third_party/wyhash/LICENSE \
third_party/wyhash/wyhash.h \
util/python/BUILD


Expand Down
3 changes: 0 additions & 3 deletions conformance/Makefile.am
Expand Up @@ -353,9 +353,6 @@ test_php: protoc_middleman conformance-test-runner conformance-php $(other_langu
test_php_c: protoc_middleman conformance-test-runner conformance-php-c $(other_language_protoc_outputs)
./conformance-test-runner --enforce_recommended --failure_list failure_list_php_c.txt --text_format_failure_list text_format_failure_list_php.txt ./conformance-php-c

test_php_c_32: protoc_middleman conformance-test-runner conformance-php-c $(other_language_protoc_outputs)
./conformance-test-runner --enforce_recommended --failure_list failure_list_php_c_32.txt --text_format_failure_list text_format_failure_list_php.txt ./conformance-php-c

# These depend on library paths being properly set up. The easiest way to
# run them is to just use "tox" from the python dir.
test_python: protoc_middleman conformance-test-runner
Expand Down
2 changes: 0 additions & 2 deletions conformance/failure_list_php_c.txt
@@ -1,4 +1,2 @@
Recommended.Proto2.JsonInput.FieldNameExtension.Validator
Recommended.Proto3.JsonInput.NullValueInOtherOneofNewFormat.Validator
Recommended.Proto3.JsonInput.NullValueInOtherOneofOldFormat.Validator
Required.Proto2.JsonInput.StoresDefaultPrimitive.Validator
4 changes: 0 additions & 4 deletions conformance/failure_list_php_c_32.txt

This file was deleted.

2 changes: 1 addition & 1 deletion php/ext/google/protobuf/config.m4
Expand Up @@ -5,6 +5,6 @@ if test "$PHP_PROTOBUF" != "no"; then
PHP_NEW_EXTENSION(
protobuf,
arena.c array.c convert.c def.c map.c message.c names.c php-upb.c protobuf.c,
$ext_shared)
$ext_shared, , -std=gnu99)

fi
2 changes: 2 additions & 0 deletions php/ext/google/protobuf/package.xml
Expand Up @@ -45,6 +45,8 @@
<file baseinstalldir="/" name="php-upb.h" role="src"/>
<file baseinstalldir="/" name="protobuf.c" role="src"/>
<file baseinstalldir="/" name="protobuf.h" role="src"/>
<file baseinstalldir="/" name="third_party/wyhash/wyhash.h" role="src"/>
<file baseinstalldir="/" name="third_party/wyhash/LICENSE" role="doc"/>
<file baseinstalldir="/" name="LICENSE" role="doc"/>
</dir>
</contents>
Expand Down

0 comments on commit 1dd4834

Please sign in to comment.