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

PHP Extension - Inconsistent final modifier for Google\Protobuf\Timestamp #20037

Open
FabioBatSilva opened this issue Jan 18, 2025 · 6 comments

Comments

@FabioBatSilva
Copy link

In PHP C extension implementation of Google\Protobuf\Timestamp is marked as final but not in the native PHP implementation.

This creates inconsistency between the two:

PHP Implementation :

class Timestamp extends \Google\Protobuf\Internal\TimestampBase

C Implementation

google_protobuf_Timestamp_ce->ce_flags |= ZEND_ACC_FINAL;

@FabioBatSilva FabioBatSilva added the untriaged auto added to all issues by default when created. label Jan 18, 2025
@JasonLunn
Copy link
Contributor

Thanks for reporting this issue, @FabioBatSilva.

Same kind of question as in #20036 - Is this issue unique to the Timestamp class, or does it impact other well known types?

@JasonLunn JasonLunn added help wanted php and removed untriaged auto added to all issues by default when created. labels Feb 5, 2025
@FabioBatSilva
Copy link
Author

@JasonLunn
Copy link
Contributor

Do you have the bandwidth to send a PR to address this?

@FabioBatSilva
Copy link
Author

Yes, I think..
I've been meaning to do so..

I have a branch with patches for the issues I found :
ChessCom/protobuf@main...ChessCom:protobuf:protobuf-4.30-debug

Need split it up and clean up a few things before I send PRs.

@JasonLunn
Copy link
Contributor

To clarify - once split up, would those PR's cover any of your other open issues?

@FabioBatSilva
Copy link
Author

I think It covers #20000, #20036, #19978, #20041

But the expected behavior is not clear in some of them.
I just patched it enough to allow us to continue testing the extension.

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

No branches or pull requests

3 participants