summaryrefslogtreecommitdiff
path: root/Zend/zend_globals.h
diff options
context:
space:
mode:
authorRui Hirokawa <hirokawa@php.net>2008-06-29 08:21:35 +0000
committerRui Hirokawa <hirokawa@php.net>2008-06-29 08:21:35 +0000
commitc3286f32ef6e44894389679723aaf5afe101492e (patch)
treedbb709b309e78a99d114e0509e0423d5d3159154 /Zend/zend_globals.h
parenta6410b3056a0d0e1af782996a93354593c8e0c76 (diff)
downloadphp-git-c3286f32ef6e44894389679723aaf5afe101492e.tar.gz
implemented again zend-multibyte for PHP 5.3
Diffstat (limited to 'Zend/zend_globals.h')
-rw-r--r--Zend/zend_globals.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/Zend/zend_globals.h b/Zend/zend_globals.h
index 6578a7e821..67684a4b96 100644
--- a/Zend/zend_globals.h
+++ b/Zend/zend_globals.h
@@ -35,6 +35,10 @@
#include "zend_objects_API.h"
#include "zend_modules.h"
+#ifdef ZEND_MULTIBYTE
+#include "zend_multibyte.h"
+#endif /* ZEND_MULTIBYTE */
+
/* Define ZTS if you want a thread-safe Zend */
/*#undef ZTS*/
@@ -134,6 +138,19 @@ struct _zend_compiler_globals {
HashTable *labels;
zend_stack labels_stack;
+#ifdef ZEND_MULTIBYTE
+ zend_encoding **script_encoding_list;
+ int script_encoding_list_size;
+ zend_bool detect_unicode;
+
+ zend_encoding *internal_encoding;
+
+ /* multibyte utility functions */
+ zend_encoding_detector encoding_detector;
+ zend_encoding_converter encoding_converter;
+ zend_encoding_oddlen encoding_oddlen;
+#endif /* ZEND_MULTIBYTE */
+
#ifdef ZTS
HashTable **static_members;
int last_static_member;
@@ -271,6 +288,22 @@ struct _zend_php_scanner_globals {
zend_stack state_stack;
zend_llist used_state_stacks;
+
+#ifdef ZEND_MULTIBYTE
+ /* original (unfiltered) script */
+ char *script_org;
+ int script_org_size;
+
+ /* filtered script */
+ char *script_filtered;
+ int script_filtered_size;
+
+ /* input/ouput filters */
+ zend_encoding_filter input_filter;
+ zend_encoding_filter output_filter;
+ zend_encoding *script_encoding;
+ zend_encoding *internal_encoding;
+#endif /* ZEND_MULTIBYTE */
};
#endif /* ZEND_GLOBALS_H */