We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cd46b1 commit 4242098Copy full SHA for 4242098
msgpack_pack.c
@@ -21,6 +21,9 @@
21
22
#include "msgpack/pack_template.h"
23
24
+#if PHP_VERSION_ID >= 80100
25
+# define msgpack_check_ht_is_map(array) (!zend_array_is_list(Z_ARRVAL_P(array)))
26
+#else
27
static inline int msgpack_check_ht_is_map(zval *array) /* {{{ */ {
28
Bucket *b;
29
zend_ulong i = 0;
@@ -35,6 +38,7 @@ static inline int msgpack_check_ht_is_map(zval *array) /* {{{ */ {
35
38
return 0;
36
39
}
37
40
/* }}} */
41
+#endif
42
43
static inline int msgpack_var_add(HashTable *var_hash, zval *var, zend_long *var_old) /* {{{ */ {
44
uint32_t len;
0 commit comments