Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port for php8 #8105

Merged
merged 7 commits into from Dec 4, 2020
Merged

Port for php8 #8105

merged 7 commits into from Dec 4, 2020

Conversation

TeBoring
Copy link
Contributor

@TeBoring TeBoring commented Nov 30, 2020

  1. Fixed tests to be compatible with phpunit 9
  2. Added missing arginfo to c extension
  3. Add port for compare_objects, which was changed to compare in php runtime.

@haberman
Copy link
Member

haberman commented Dec 4, 2020

Very nice change.

I don't see any Kokoro results for PHP 8.0?

@TeBoring
Copy link
Contributor Author

TeBoring commented Dec 4, 2020

@haberman haberman self-requested a review December 4, 2020 21:21
@TeBoring TeBoring merged commit 823f351 into protocolbuffers:master Dec 4, 2020
@TeBoring TeBoring deleted the php8-fix branch December 4, 2020 21:46
haberman added a commit to haberman/protobuf that referenced this pull request Dec 11, 2020
Message accessors will return null when when the field is not
set, so this should be reflected in the PhpDoc.

Also updated the code generator for the well-known types to reflect
the edits made in protocolbuffers#8105.

Also explicitly check for upb_msg_has() in the oneof accessor, so
we are not implicitly relying on unset message fields returning NULL
at the upb level.
TeBoring pushed a commit that referenced this pull request Jan 7, 2021
Message accessors will return null when when the field is not
set, so this should be reflected in the PhpDoc.

Also updated the code generator for the well-known types to reflect
the edits made in #8105.

Also explicitly check for upb_msg_has() in the oneof accessor, so
we are not implicitly relying on unset message fields returning NULL
at the upb level.
@@ -6,10 +6,10 @@
"homepage": "https://developers.google.com/protocol-buffers/",
"license": "BSD-3-Clause",
"require": {
"php": ">=5.5.0"
"php": ">=7.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This drops support for 5.5 and 5.6 in the native PHP library. Was this intentional? I see no mention of this anywhere in the PR or README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants