We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e85604f commit 583b9f3Copy full SHA for 583b9f3
src/MongoDB/WriteConcern.c
@@ -90,7 +90,11 @@ PHP_METHOD(WriteConcern, __construct)
90
switch(ZEND_NUM_ARGS()) {
91
case 3:
92
if (Z_TYPE_P(journal) != IS_NULL) {
93
+#ifdef ZEND_ENGINE_3
94
+ mongoc_write_concern_set_journal(intern->write_concern, Z_TYPE_P(journal) == IS_TRUE);
95
+#else
96
mongoc_write_concern_set_journal(intern->write_concern, Z_BVAL_P(journal));
97
+#endif
98
}
99
/* fallthrough */
100
case 2:
0 commit comments