Skip to content

Commit 1cdfd0d

Browse files
committed
PHPC-2098: Fix phongo_clientencryption_init signature when compiling without CSFLE
1 parent 2063c20 commit 1cdfd0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/MongoDB/ClientEncryption.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#include "phongo_error.h"
2828
#include "phongo_util.h"
2929

30+
#include "MongoDB/ClientEncryption.h"
31+
3032
zend_class_entry* php_phongo_clientencryption_ce;
3133

3234
/* Forward declarations */
@@ -582,7 +584,7 @@ static void phongo_clientencryption_decrypt(php_phongo_clientencryption_t* clien
582584
bson_value_destroy(&value);
583585
} /* }}} */
584586
#else /* MONGOC_ENABLE_CLIENT_SIDE_ENCRYPTION */
585-
void phongo_clientencryption_init(php_phongo_clientencryption_t* clientencryption, zval* manager, zval* options) /* {{{ */
587+
void phongo_clientencryption_init(zval* return_value, zval* manager, zval* options) /* {{{ */
586588
{
587589
phongo_throw_exception_no_cse(PHONGO_ERROR_RUNTIME, "Cannot configure clientEncryption object.");
588590
}

0 commit comments

Comments
 (0)