@@ -185,7 +185,7 @@ void phongo_throw_exception(php_phongo_error_domain_t domain TSRMLS_DC, const ch
185
185
va_end (args );
186
186
}
187
187
188
- static void phongo_exception_add_error_labels (bson_t * reply TSRMLS_DC )
188
+ static void phongo_exception_add_error_labels (const bson_t * reply TSRMLS_DC )
189
189
{
190
190
bson_iter_t iter ;
191
191
@@ -260,7 +260,7 @@ void phongo_throw_exception_from_bson_error_t_and_reply(bson_error_t* error, con
260
260
261
261
void phongo_throw_exception_from_bson_error_t (bson_error_t * error TSRMLS_DC )
262
262
{
263
- phongo_throw_exception_from_bson_error_and_reply_t (error , NULL TSRMLS_CC );
263
+ phongo_throw_exception_from_bson_error_t_and_reply (error , NULL TSRMLS_CC );
264
264
}
265
265
266
266
static void php_phongo_log (mongoc_log_level_t log_level , const char * log_domain , const char * message , void * user_data )
@@ -765,7 +765,7 @@ bool phongo_execute_bulk_write(mongoc_client_t* client, const char* namespace, p
765
765
* will also be accessible via Exception::getPrevious(). */
766
766
if (!success ) {
767
767
if (error .domain != MONGOC_ERROR_SERVER && error .domain != MONGOC_ERROR_WRITE_CONCERN ) {
768
- phongo_throw_exception_from_bson_error_and_reply_t (& error , & reply TSRMLS_CC );
768
+ phongo_throw_exception_from_bson_error_t_and_reply (& error , & reply TSRMLS_CC );
769
769
}
770
770
771
771
/* Argument errors occur before command execution, so there is no need
@@ -787,7 +787,7 @@ bool phongo_execute_bulk_write(mongoc_client_t* client, const char* namespace, p
787
787
788
788
/* Ensure error labels are added to the final BulkWriteException. If a
789
789
* previous exception was also thrown, error labels will already have
790
- * been added by phongo_throw_exception_from_bson_error_and_reply_t . */
790
+ * been added by phongo_throw_exception_from_bson_error_t_and_reply . */
791
791
phongo_exception_add_error_labels (& reply TSRMLS_CC );
792
792
phongo_add_exception_prop (ZEND_STRL ("writeResult" ), return_value TSRMLS_CC );
793
793
}
0 commit comments