]> granicus.if.org Git - php/commitdiff
move some var declarations to the top for better grouping
authorAnatol Belski <ab@php.net>
Sun, 15 Jan 2017 20:27:05 +0000 (21:27 +0100)
committerAnatol Belski <ab@php.net>
Sun, 15 Jan 2017 20:27:05 +0000 (21:27 +0100)
Zend/zend.c

index 904e2cc68c8cbbe2ff1e829da354d4df38a95300..db57f395bb91db82cf22bd7610459883355cb47d 100644 (file)
 #include "zend_smart_string.h"
 
 #ifdef ZTS
+ZEND_API int compiler_globals_id;
+ZEND_API int executor_globals_id;
+static HashTable *global_function_table = NULL;
+static HashTable *global_class_table = NULL;
+static HashTable *global_constants_table = NULL;
+static HashTable *global_auto_globals_table = NULL;
+static HashTable *global_persistent_list = NULL;
+ZEND_TSRMLS_CACHE_DEFINE()
 # define GLOBAL_FUNCTION_TABLE         global_function_table
 # define GLOBAL_CLASS_TABLE                    global_class_table
 # define GLOBAL_CONSTANTS_TABLE                global_constants_table
 # define GLOBAL_CONSTANTS_TABLE                EG(zend_constants)
 #endif
 
+ZEND_API zend_utility_values zend_uv;
+
+/* version information */
+static char *zend_version_info;
+static uint32_t zend_version_info_length;
+#define ZEND_CORE_VERSION_INFO "Zend Engine v" ZEND_VERSION ", Copyright (c) 1998-2017 Zend Technologies\n"
+#define PRINT_ZVAL_INDENT 4
+
 /* true multithread-shared globals */
 ZEND_API zend_class_entry *zend_standard_class_def = NULL;
 ZEND_API size_t (*zend_printf)(const char *format, ...);
@@ -140,26 +156,6 @@ ZEND_INI_BEGIN()
 #endif
 ZEND_INI_END()
 
-
-#ifdef ZTS
-ZEND_API int compiler_globals_id;
-ZEND_API int executor_globals_id;
-static HashTable *global_function_table = NULL;
-static HashTable *global_class_table = NULL;
-static HashTable *global_constants_table = NULL;
-static HashTable *global_auto_globals_table = NULL;
-static HashTable *global_persistent_list = NULL;
-ZEND_TSRMLS_CACHE_DEFINE()
-#endif
-
-ZEND_API zend_utility_values zend_uv;
-
-/* version information */
-static char *zend_version_info;
-static uint32_t zend_version_info_length;
-#define ZEND_CORE_VERSION_INFO "Zend Engine v" ZEND_VERSION ", Copyright (c) 1998-2017 Zend Technologies\n"
-#define PRINT_ZVAL_INDENT 4
-
 ZEND_API size_t zend_vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap) /* {{{ */
 {
        smart_string buf = {0};