File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,8 @@ void php_phongo_bson_visit_corrupt(const bson_iter_t *iter __attribute__((unused
170
170
{
171
171
zval * retval = * (zval * * )data ;
172
172
173
+ mongoc_log (MONGOC_LOG_LEVEL_TRACE , MONGOC_LOG_DOMAIN , "Corrupt BSON data detected!" );
174
+
173
175
zval_ptr_dtor (& retval );
174
176
}
175
177
/* }}} */
@@ -477,7 +479,7 @@ bool php_phongo_bson_visit_minkey(const bson_iter_t *iter __attribute__((unused)
477
479
static const bson_visitor_t php_bson_visitors = {
478
480
NULL /* php_phongo_bson_visit_before*/ ,
479
481
NULL /*php_phongo_bson_visit_after*/ ,
480
- NULL /* php_phongo_bson_visit_corrupt*/ ,
482
+ php_phongo_bson_visit_corrupt ,
481
483
php_phongo_bson_visit_double ,
482
484
php_phongo_bson_visit_utf8 ,
483
485
php_phongo_bson_visit_document ,
You can’t perform that action at this time.
0 commit comments