Skip to content

Commit c6a871a

Browse files
bjoriderickr
authored andcommitted
WS
1 parent eab54fe commit c6a871a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/bson.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ bool php_phongo_bson_visit_binary(const bson_iter_t *iter ARG_UNUSED, const char
219219

220220
if (v_subtype == 0x80 && strcmp(key, PHONGO_ODM_FIELD_NAME) == 0) {
221221
#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);
225225
#else
226226
zend_class_entry *found_ce = zend_fetch_class((char *)v_binary, v_binary_len, ZEND_FETCH_CLASS_AUTO|ZEND_FETCH_CLASS_SILENT TSRMLS_CC);
227227
#endif
@@ -1287,9 +1287,9 @@ static void apply_classname_to_state(const char *classname, int classname_len, p
12871287
*type_ce = NULL;
12881288
} else {
12891289
#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);
12931293
#else
12941294
zend_class_entry *found_ce = zend_fetch_class(classname, classname_len, ZEND_FETCH_CLASS_AUTO|ZEND_FETCH_CLASS_SILENT TSRMLS_CC);
12951295
#endif
@@ -1359,7 +1359,7 @@ PHP_FUNCTION(toPHP)
13591359

13601360
if (!bson_to_zval_ex((const unsigned char *)data, data_len, &state)) {
13611361
#if PHP_VERSION_ID >= 70000
1362-
zval_ptr_dtor(state.zchild);
1362+
zval_ptr_dtor(state.zchild);
13631363
#else
13641364
zval_ptr_dtor(&state.zchild);
13651365
#endif

0 commit comments

Comments
 (0)