From 5f3f4f1d96df9403f60465597baa9da66e9c599c Mon Sep 17 00:00:00 2001 From: CismonX Date: Sat, 8 Jun 2019 00:18:42 +0800 Subject: [PATCH] update --- .travis.yml | 1 - src/collections_methods.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6fef494..6cee8a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,6 @@ php: - 7.1 - 7.2 - 7.3 - - nightly script: - phpize diff --git a/src/collections_methods.c b/src/collections_methods.c index cc68d16..2bb61ef 100644 --- a/src/collections_methods.c +++ b/src/collections_methods.c @@ -26,9 +26,9 @@ #define PAIR_SECOND(obj) OBJ_PROP_NUM(obj, 1) #define IS_COLLECTION(val) \ - Z_TYPE(val) == IS_OBJECT && Z_OBJCE(val) == collections_collection_ce + (Z_TYPE(val) == IS_OBJECT && Z_OBJCE(val) == collections_collection_ce) #define IS_PAIR(val) \ - Z_TYPE(val) == IS_OBJECT && Z_OBJCE(val) == collections_pair_ce + (Z_TYPE(val) == IS_OBJECT && Z_OBJCE(val) == collections_pair_ce) #define SEPARATE_COLLECTION(ht, obj) \ if (GC_REFCOUNT(ht) > 1) { \