com php-src: Add iterable type to opcache: ext/opcache/Optimize r/zend_inference.c

From: Date: Sat, 11 Jun 2016 00:01:27 +0000
Subject: com php-src: Add iterable type to opcache: ext/opcache/Optimize r/zend_inference.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92748@lists.php.net to get a copy of this message
Commit: 0dc772c9b4466de45c47c6a5222b7d3464dcfa2c Author: Aaron Piotrowski <aaron@trowski.com> Fri, 10 Jun 2016 19:01:27 -0500 Parents: 277d89cde8ed19c0e1f9f51e14bcb993f80e1d22 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0dc772c9b4466de45c47c6a5222b7d3464dcfa2c Log: Add iterable type to opcache Changed paths: M ext/opcache/Optimizer/zend_inference.c Diff: diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c index 8ea4347..795ad79 100644 --- a/ext/opcache/Optimizer/zend_inference.c +++ b/ext/opcache/Optimizer/zend_inference.c @@ -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) {

« previous php.cvs (#92748) next »