PHPC-1514 Remove php_phongo_read_concern_to_zval#1989
PHPC-1514 Remove php_phongo_read_concern_to_zval#1989paulinevos merged 1 commit intomongodb:v2.xfrom
php_phongo_read_concern_to_zval#1989Conversation
There was a problem hiding this comment.
Pull request overview
Removes the internal phongo_read_concern_to_zval helper by switching MongoDB\Driver\Query’s debug handler to expose a MongoDB\Driver\ReadConcern object directly in debug info.
Changes:
- Remove
phongo_read_concern_to_zvaldeclaration and implementation. - Update
Querydebug info to usephongo_readconcern_init()and attach aReadConcernobject instead of an array.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/MongoDB/ReadConcern.h | Drops the removed helper’s declaration. |
| src/MongoDB/ReadConcern.c | Drops the removed helper’s implementation. |
| src/MongoDB/Query.c | Uses phongo_readconcern_init() for readConcern debug info. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I'm surprised that a test like tests/query/query-debug-001.phpt doesn't fail. The format has changed from an array to an instance of |
php_phongo_read_concern_to_zval
|
@GromNaN I'm actually surprised the test isn't included in the PR, cause I did update it and I'm using JJ (which should include any unstaged changes with the revision). Weird |
2c213a5 to
5b036f4
Compare
5b036f4 to
ce5983a
Compare
It's only used by the `Query` debug handler and can be replaced by adding a `ReadConcern` object to `Query`'s debug info instead
ce5983a to
69404f6
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fix PHPC-1514
It's only used by the
Querydebug handler and can be replaced by adding aReadConcernobject toQuery's debug info instead