]> granicus.if.org Git - php/commitdiff
Add iterable type to opcache
authorAaron Piotrowski <aaron@trowski.com>
Sat, 11 Jun 2016 00:01:27 +0000 (19:01 -0500)
committerAaron Piotrowski <aaron@trowski.com>
Sat, 11 Jun 2016 00:01:27 +0000 (19:01 -0500)
ext/opcache/Optimizer/zend_inference.c

index 8ea4347d50cd746aee263aeee3561d27e4f231de..795ad79230ca89ed76fb62055f7bfb19d7011351 100644 (file)
@@ -2375,6 +2375,8 @@ static uint32_t zend_fetch_arg_info(const zend_script *script, zend_arg_info *ar
                        tmp |= MAY_BE_NULL;
                } else if (arg_info->type_hint == IS_CALLABLE) {
                        tmp |= MAY_BE_STRING|MAY_BE_OBJECT|MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_ANY|MAY_BE_ARRAY_OF_ANY|MAY_BE_ARRAY_OF_REF;
+               } else if (arg_info->type_hint == IS_ITERABLE) {
+                       tmp |= MAY_BE_OBJECT|MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_ANY|MAY_BE_ARRAY_OF_ANY|MAY_BE_ARRAY_OF_REF;
                } else if (arg_info->type_hint == IS_ARRAY) {
                        tmp |= MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_ANY|MAY_BE_ARRAY_OF_ANY|MAY_BE_ARRAY_OF_REF;
                } else if (arg_info->type_hint == _IS_BOOL) {