-
Notifications
You must be signed in to change notification settings - Fork 29
Feat/named argument support #89
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
|
Caution Review failedThe pull request is closed. WalkthroughThis change introduces new PHP test files to verify the correct handling of named arguments in Zstandard compression and decompression functions, including dictionary-based and incremental APIs. Additionally, the extension's C source is updated to define PHP 8+ typed argument info for all user-facing functions, enhancing type safety and reflection metadata. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant PHP_Zstd_Extension
User->>PHP_Zstd_Extension: zstd_compress(data: ..., level: ...)
PHP_Zstd_Extension-->>User: compressed string
User->>PHP_Zstd_Extension: zstd_uncompress(data: ...)
PHP_Zstd_Extension-->>User: original string
User->>PHP_Zstd_Extension: zstd_compress_dict(data: ..., dict: ..., level: ...)
PHP_Zstd_Extension-->>User: compressed string
User->>PHP_Zstd_Extension: zstd_uncompress_dict(data: ..., dict: ...)
PHP_Zstd_Extension-->>User: original string
User->>PHP_Zstd_Extension: zstd_compress_init(level: ...)
PHP_Zstd_Extension-->>User: Compress\Context
User->>PHP_Zstd_Extension: zstd_compress_add(context, data: ..., end: ...)
PHP_Zstd_Extension-->>User: chunked compressed data
User->>PHP_Zstd_Extension: zstd_uncompress_init()
PHP_Zstd_Extension-->>User: UnCompress\Context
User->>PHP_Zstd_Extension: zstd_uncompress_add(context, data: ...)
PHP_Zstd_Extension-->>User: chunked decompressed data
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~18 minutes Possibly related PRs
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
✨ Finishing Touches
🧪 Generate unit tests
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.
|
1 similar comment
✅ Actions performedReview triggered.
|
Summary by CodeRabbit
New Features
Tests
Style