@@ -185,7 +185,7 @@ void phongo_throw_exception(php_phongo_error_domain_t domain TSRMLS_DC, const ch
185185 va_end (args );
186186}
187187
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 )
189189{
190190 bson_iter_t iter ;
191191
@@ -260,7 +260,7 @@ void phongo_throw_exception_from_bson_error_t_and_reply(bson_error_t* error, con
260260
261261void phongo_throw_exception_from_bson_error_t (bson_error_t * error TSRMLS_DC )
262262{
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 );
264264}
265265
266266static 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
765765 * will also be accessible via Exception::getPrevious(). */
766766 if (!success ) {
767767 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 );
769769 }
770770
771771 /* 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
787787
788788 /* Ensure error labels are added to the final BulkWriteException. If a
789789 * 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 . */
791791 phongo_exception_add_error_labels (& reply TSRMLS_CC );
792792 phongo_add_exception_prop (ZEND_STRL ("writeResult" ), return_value TSRMLS_CC );
793793 }
0 commit comments