-
Notifications
You must be signed in to change notification settings - Fork 29
Add/version constants #74
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
Conversation
WalkthroughTwo new constants, Changes
Poem
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
brotli.c (1)
1312-1322
: Register version constants in MINIT
The new block formatsversion_text
and registers bothBROTLI_VERSION_NUMBER
andBROTLI_VERSION_TEXT
. Please verify the bit-shift masks (>>24
,>>12
,&0xfff
) match the Brotli API’s version-packing scheme. Consider usingZEND_STRL("BROTLI_VERSION_TEXT")
/ZEND_STRL("BROTLI_VERSION_NUMBER")
for consistency in constant registration.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
brotli.c
(2 hunks)brotli.stub.php
(1 hunks)config.m4
(0 hunks)php_brotli.h
(0 hunks)
💤 Files with no reviewable changes (2)
- php_brotli.h
- config.m4
🔇 Additional comments (3)
brotli.stub.php (2)
66-70
: ExposeBROTLI_VERSION_TEXT
in stubs
Declaration is correct with@var string
and@cvalue
.
72-76
: ExposeBROTLI_VERSION_NUMBER
in stubs
Declaration is correct with@var int
and@cvalue
.brotli.c (1)
1428-1431
: Print library version in phpinfo
The MINFO update correctly fetches theBROTLI_VERSION_TEXT
constant and displays it under “Library Version.”
Summary by CodeRabbit