phpinfo improvements - #99
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe Brotli module information output now reports extension, library, and APCu serializer status. The information test captures this output and validates Brotli, dictionary, APCu, MIME, and fixed success-line results across configurations. ChangesBrotli information reporting
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/info.phpt`:
- Around line 72-98: Update the MIME-check section in tests/info.phpt to execute
validation before printing success: scan all entries in $lines for the “Built-in
output compression exclusions => ” row rather than using fixed indices, parse
its MIME values, report invalid values or a missing row as failures, and print
“MIMEs OK” only when the row exists and every MIME matches the expected format.
- Line 39: Update the assertion around the dictionary-status check in
tests/info.phpt to derive the expected enabled or disabled value from the
configured BROTLI_DICTIONARY_SUPPORT setting, then require an exact match
against $lines[3] instead of accepting either state.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: aca54509-8114-48f3-995a-c8b7f2c7879d
📒 Files selected for processing (2)
brotli.ctests/info.phpt
e990d20 to
80884c9
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
80884c9 to
22e29d8
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/info.phpt`:
- Around line 52-58: Update the loaded-APCu branch in tests/info.phpt to derive
the expected “brotli active” or “brotli inactive” value from
ini_get('apc.serializer') and require an exact match against $value, rather than
accepting either status.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: c875259c-40f1-4b84-8b76-7c8dbb1e11c5
📒 Files selected for processing (2)
brotli.ctests/info.phpt
🚧 Files skipped from review as they are similar to previous changes (1)
- brotli.c
- "Brotli support enabled" doesn't provide any information, so just remove it - show if brotli is bundled or not - show if brotli is the active serializer for apcu or if apcu isn't loaded - rename serializer ABI to interface - if apcu support wasn't built, show that it could have been built
22e29d8 to
79b943c
Compare
Summary by CodeRabbit
New Features
Bug Fixes
Tests