Skip to content

Commit 743eaaf

Browse files
committed
PHPC-1431: Accept null for Session::startTransaction() options
1 parent 79469c4 commit 743eaaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MongoDB/Session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ static PHP_METHOD(Session, startTransaction)
367367
intern = Z_SESSION_OBJ_P(getThis());
368368
SESSION_CHECK_LIVELINESS(intern, "startTransaction")
369369

370-
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|a", &options) == FAILURE) {
370+
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|a!", &options) == FAILURE) {
371371
return;
372372
}
373373

0 commit comments

Comments
 (0)