summaryrefslogtreecommitdiff
path: root/Zend/zend.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2010-04-22 15:03:17 +0000
committerDmitry Stogov <dmitry@php.net>2010-04-22 15:03:17 +0000
commite87d72002b7b173331c073e1e581e69f788d8a9c (patch)
tree73dbd1c9da527977364d580cf9af3e91e06e3e46 /Zend/zend.h
parentac181e07efdf46c856033d9013b9bec5fb6cfe72 (diff)
downloadphp-git-e87d72002b7b173331c073e1e581e69f788d8a9c.tar.gz
Optimized access to global constants using values with pre-calculated hash_values from litersls table
Diffstat (limited to 'Zend/zend.h')
-rw-r--r--Zend/zend.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/Zend/zend.h b/Zend/zend.h
index 8aafd2cf81..7efa9f4825 100644
--- a/Zend/zend.h
+++ b/Zend/zend.h
@@ -525,11 +525,12 @@ typedef int (*zend_write_func_t)(const char *str, uint str_length);
#define IS_CONSTANT_ARRAY 9
/* Ugly hack to support constants as static array indices */
-#define IS_CONSTANT_TYPE_MASK 0x0f
-#define IS_CONSTANT_UNQUALIFIED 0x10
-#define IS_CONSTANT_INDEX 0x80
-#define IS_LEXICAL_VAR 0x20
-#define IS_LEXICAL_REF 0x40
+#define IS_CONSTANT_TYPE_MASK 0x00f
+#define IS_CONSTANT_UNQUALIFIED 0x010
+#define IS_CONSTANT_INDEX 0x080
+#define IS_LEXICAL_VAR 0x020
+#define IS_LEXICAL_REF 0x040
+#define IS_CONSTANT_IN_NAMESPACE 0x100
/* overloaded elements data types */
#define OE_IS_ARRAY (1<<0)