Skip to content

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Aug 13, 2025

https://jira.mongodb.org/browse/PHPLIB-1702

This is something I came across while working on the merge-up PR (#1746). It can be reviewed independently.

@jmikola jmikola requested a review from GromNaN August 13, 2025 17:56
@jmikola jmikola requested a review from a team as a code owner August 13, 2025 17:56
Comment on lines +140 to +142
/* Database and Collection objects may need to know whether auto
* encryption is enabled for dropping collections. Track this via an
* internal option until PHPC-2615 is implemented. */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like this kind of comment that gives context and reference.

@jmikola jmikola merged commit 0e80d17 into mongodb:v1.21 Aug 13, 2025
31 checks passed
@jmikola jmikola deleted the 1.21-phplib-1702-withOptions branch August 13, 2025 18:23
This was referenced Aug 13, 2025

$rc = new ReflectionClass($clone);
$rp = $rc->getProperty('autoEncryptionEnabled');
$rp->setAccessible(true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: this method has no effect on PHP 8.1.0+, as all properties are accessible by default.

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

Successfully merging this pull request may close these issues.

3 participants