Skip to content

Commit c006288

Browse files
committed
fix test
1 parent 2f76546 commit c006288

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.editorconfig

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ charset = utf-8
77
[*.{c,h,phpt}]
88
indent_style = space
99
indent_size = 4
10+
11+
[*.{c,h}]
1012
trim_trailing_whitespace = true
1113

1214
[*.{yml,m4,w32}]

msgpack_pack.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ static inline void msgpack_serialize_array(smart_str *buf, zval *val, HashTable
292292

293293
if (Z_TYPE_P(value_noref) == IS_ARRAY &&
294294
#if PHP_VERSION_ID < 70300
295-
ZEND_HASH_GET_APPLY_COUNT(Z_ARRVAL_P(value_noref))
295+
ZEND_HASH_GET_APPLY_COUNT(Z_ARRVAL_P(value_noref))
296296
#else
297297
Z_IS_RECURSIVE_P(value_noref)
298298
#endif
@@ -343,7 +343,7 @@ static inline void msgpack_serialize_array(smart_str *buf, zval *val, HashTable
343343
msgpack_pack_nil(buf);
344344
} else if (Z_TYPE_P(data) == IS_REFERENCE && Z_TYPE_P(Z_REFVAL_P(data)) == IS_ARRAY &&
345345
#if PHP_VERSION_ID < 70300
346-
ZEND_HASH_GET_APPLY_COUNT(Z_ARRVAL_P(Z_REFVAL_P(data)))
346+
ZEND_HASH_GET_APPLY_COUNT(Z_ARRVAL_P(Z_REFVAL_P(data)))
347347
#else
348348
Z_IS_RECURSIVE_P(Z_REFVAL_P(data))
349349
#endif

tests/issue107.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Array
135135
[u] => 8574784417457
136136
[o] => Array
137137
(
138-
[0] =>
138+
[0] =>
139139
[1] => m
140140
[2] => EF
141141
[3] => tdz

0 commit comments

Comments
 (0)