@@ -414,7 +414,7 @@ zend_bool phongo_writeconcernerror_init(zval *return_value, bson_t *bson TSRMLS_
414414 return false;
415415 }
416416
417- if (!bson_to_zval (data , len , & writeconcernerror -> info )) {
417+ if (!phongo_bson_to_zval (data , len , & writeconcernerror -> info )) {
418418 zval_ptr_dtor (& writeconcernerror -> info );
419419#if PHP_VERSION_ID >= 70000
420420 ZVAL_UNDEF (& writeconcernerror -> info );
@@ -448,7 +448,7 @@ zend_bool phongo_writeerror_init(zval *return_value, bson_t *bson TSRMLS_DC) /*
448448 bson_init (& info );
449449 bson_append_iter (& info , NULL , 0 , & iter );
450450
451- if (!bson_to_zval (bson_get_data (& info ), info .len , & writeerror -> info )) {
451+ if (!phongo_bson_to_zval (bson_get_data (& info ), info .len , & writeerror -> info )) {
452452 zval_ptr_dtor (& writeerror -> info );
453453#if PHP_VERSION_ID >= 70000
454454 ZVAL_UNDEF (& writeerror -> info );
@@ -1326,7 +1326,7 @@ void php_phongo_server_to_zval(zval *retval, const mongoc_server_description_t *
13261326 state .map .root_type = PHONGO_TYPEMAP_NATIVE_ARRAY ;
13271327 state .map .document_type = PHONGO_TYPEMAP_NATIVE_ARRAY ;
13281328
1329- bson_to_zval_ex (bson_get_data (& sd -> tags ), sd -> tags .len , & state );
1329+ phongo_bson_to_zval_ex (bson_get_data (& sd -> tags ), sd -> tags .len , & state );
13301330#if PHP_VERSION_ID >= 70000
13311331 ADD_ASSOC_ZVAL_EX (retval , "tags" , & state .zchild );
13321332#else
@@ -1339,7 +1339,7 @@ void php_phongo_server_to_zval(zval *retval, const mongoc_server_description_t *
13391339 state .map .root_type = PHONGO_TYPEMAP_NATIVE_ARRAY ;
13401340 state .map .document_type = PHONGO_TYPEMAP_NATIVE_ARRAY ;
13411341
1342- bson_to_zval_ex (bson_get_data (& sd -> last_is_master ), sd -> last_is_master .len , & state );
1342+ phongo_bson_to_zval_ex (bson_get_data (& sd -> last_is_master ), sd -> last_is_master .len , & state );
13431343#if PHP_VERSION_ID >= 70000
13441344 ADD_ASSOC_ZVAL_EX (retval , "last_is_master" , & state .zchild );
13451345#else
@@ -1375,7 +1375,7 @@ void php_phongo_read_preference_to_zval(zval *retval, const mongoc_read_prefs_t
13751375 state .map .root_type = PHONGO_TYPEMAP_NATIVE_ARRAY ;
13761376 state .map .document_type = PHONGO_TYPEMAP_NATIVE_ARRAY ;
13771377
1378- bson_to_zval_ex (bson_get_data (& read_prefs -> tags ), read_prefs -> tags .len , & state );
1378+ phongo_bson_to_zval_ex (bson_get_data (& read_prefs -> tags ), read_prefs -> tags .len , & state );
13791379#if PHP_VERSION_ID >= 70000
13801380 ADD_ASSOC_ZVAL_EX (retval , "tags" , & state .zchild );
13811381#else
@@ -1439,7 +1439,7 @@ void php_phongo_cursor_to_zval(zval *retval, const mongoc_cursor_t *cursor) /* {
14391439 zval * zv ;
14401440#endif
14411441
1442- bson_to_zval (bson_get_data (& cursor -> query ), cursor -> query .len , & zv );
1442+ phongo_bson_to_zval (bson_get_data (& cursor -> query ), cursor -> query .len , & zv );
14431443#if PHP_VERSION_ID >= 70000
14441444 ADD_ASSOC_ZVAL_EX (retval , "query" , & zv );
14451445#else
@@ -1453,7 +1453,7 @@ void php_phongo_cursor_to_zval(zval *retval, const mongoc_cursor_t *cursor) /* {
14531453 zval * zv ;
14541454#endif
14551455
1456- bson_to_zval (bson_get_data (& cursor -> fields ), cursor -> fields .len , & zv );
1456+ phongo_bson_to_zval (bson_get_data (& cursor -> fields ), cursor -> fields .len , & zv );
14571457#if PHP_VERSION_ID >= 70000
14581458 ADD_ASSOC_ZVAL_EX (retval , "fields" , & zv );
14591459#else
@@ -1491,7 +1491,7 @@ void php_phongo_cursor_to_zval(zval *retval, const mongoc_cursor_t *cursor) /* {
14911491 zval * zv ;
14921492#endif
14931493
1494- bson_to_zval (bson_get_data (cursor -> current ), cursor -> current -> len , & zv );
1494+ phongo_bson_to_zval (bson_get_data (cursor -> current ), cursor -> current -> len , & zv );
14951495#if PHP_VERSION_ID >= 70000
14961496 ADD_ASSOC_ZVAL_EX (retval , "current_doc" , & zv );
14971497#else
@@ -2146,7 +2146,7 @@ static void php_phongo_cursor_iterator_move_forward(zend_object_iterator *iter T
21462146 cursor_it -> current ++ ;
21472147
21482148 if (mongoc_cursor_next (cursor -> cursor , & doc )) {
2149- bson_to_zval_ex (bson_get_data (doc ), doc -> len , & cursor -> visitor_data );
2149+ phongo_bson_to_zval_ex (bson_get_data (doc ), doc -> len , & cursor -> visitor_data );
21502150 } else {
21512151 bson_error_t error ;
21522152
@@ -2174,7 +2174,7 @@ static void php_phongo_cursor_iterator_rewind(zend_object_iterator *iter TSRMLS_
21742174 doc = mongoc_cursor_current (cursor -> cursor );
21752175
21762176 if (doc ) {
2177- bson_to_zval_ex (bson_get_data (doc ), doc -> len , & cursor -> visitor_data );
2177+ phongo_bson_to_zval_ex (bson_get_data (doc ), doc -> len , & cursor -> visitor_data );
21782178 }
21792179} /* }}} */
21802180
0 commit comments