diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2013-11-01 16:16:58 +0100 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2013-11-01 16:16:58 +0100 |
commit | b45043a1b71c29a0c7b8de9e4929dde08bd61216 (patch) | |
tree | 07e97d65a100eef0cfc1bb998f649475380d612d /Zend/zend.h | |
parent | b56c1ca95e16ea1c2a3ce251b91297d0a81a9070 (diff) | |
download | php-git-b45043a1b71c29a0c7b8de9e4929dde08bd61216.tar.gz |
converted several switches to ifs and made more opcache friendly
Diffstat (limited to 'Zend/zend.h')
-rw-r--r-- | Zend/zend.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend.h b/Zend/zend.h index 7ccd0814e0..8154277cf1 100644 --- a/Zend/zend.h +++ b/Zend/zend.h @@ -600,6 +600,8 @@ typedef int (*zend_write_func_t)(const char *str, uint str_length); #define IS_LEXICAL_REF 0x040 #define IS_CONSTANT_IN_NAMESPACE 0x100 +#define IS_CONSTANT_TYPE(type) (((type) & IS_CONSTANT_TYPE_MASK) >= IS_CONSTANT && ((type) & IS_CONSTANT_TYPE_MASK) <= IS_CONSTANT_AST) + /* overloaded elements data types */ #define OE_IS_ARRAY (1<<0) #define OE_IS_OBJECT (1<<1) |