@@ -219,9 +219,9 @@ bool php_phongo_bson_visit_binary(const bson_iter_t *iter ARG_UNUSED, const char
219
219
220
220
if (v_subtype == 0x80 && strcmp (key , PHONGO_ODM_FIELD_NAME ) == 0 ) {
221
221
#if PHP_VERSION_ID >= 70000
222
- zend_string * zs_classname = zend_string_init ((char * )v_binary , v_binary_len , 0 );
223
- zend_class_entry * found_ce = zend_fetch_class (zs_classname , ZEND_FETCH_CLASS_AUTO |ZEND_FETCH_CLASS_SILENT TSRMLS_CC );
224
- zend_string_free (zs_classname );
222
+ zend_string * zs_classname = zend_string_init ((const char * )v_binary , v_binary_len , 0 );
223
+ zend_class_entry * found_ce = zend_fetch_class (zs_classname , ZEND_FETCH_CLASS_AUTO |ZEND_FETCH_CLASS_SILENT TSRMLS_CC );
224
+ zend_string_free (zs_classname );
225
225
#else
226
226
zend_class_entry * found_ce = zend_fetch_class ((char * )v_binary , v_binary_len , ZEND_FETCH_CLASS_AUTO |ZEND_FETCH_CLASS_SILENT TSRMLS_CC );
227
227
#endif
@@ -1287,9 +1287,9 @@ static void apply_classname_to_state(const char *classname, int classname_len, p
1287
1287
* type_ce = NULL ;
1288
1288
} else {
1289
1289
#if PHP_VERSION_ID >= 70000
1290
- zend_string * zs_classname = zend_string_init (classname , classname_len , 0 );
1291
- zend_class_entry * found_ce = zend_fetch_class (zs_classname , ZEND_FETCH_CLASS_AUTO |ZEND_FETCH_CLASS_SILENT TSRMLS_CC );
1292
- zend_string_free (zs_classname );
1290
+ zend_string * zs_classname = zend_string_init (classname , classname_len , 0 );
1291
+ zend_class_entry * found_ce = zend_fetch_class (zs_classname , ZEND_FETCH_CLASS_AUTO |ZEND_FETCH_CLASS_SILENT TSRMLS_CC );
1292
+ zend_string_free (zs_classname );
1293
1293
#else
1294
1294
zend_class_entry * found_ce = zend_fetch_class (classname , classname_len , ZEND_FETCH_CLASS_AUTO |ZEND_FETCH_CLASS_SILENT TSRMLS_CC );
1295
1295
#endif
@@ -1359,7 +1359,7 @@ PHP_FUNCTION(toPHP)
1359
1359
1360
1360
if (!bson_to_zval_ex ((const unsigned char * )data , data_len , & state )) {
1361
1361
#if PHP_VERSION_ID >= 70000
1362
- zval_ptr_dtor (state .zchild );
1362
+ zval_ptr_dtor (state .zchild );
1363
1363
#else
1364
1364
zval_ptr_dtor (& state .zchild );
1365
1365
#endif
0 commit comments