summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-10-29 20:04:56 +0100
committerAnatol Belski <ab@php.net>2014-10-29 20:04:56 +0100
commitd77ce317636919a87daa7f8ffb2979474f9cade7 (patch)
treec9ebe2c7ad01661e7696a8f15d6d4842870f03ea /main
parent23f089a6b3586d524e8709d75262029bc8fa7ad4 (diff)
parentfc904569ea5c5513925a69bf43820845eb3db104 (diff)
downloadphp-git-d77ce317636919a87daa7f8ffb2979474f9cade7.tar.gz
Merge branch 'PHP-5.6'
* PHP-5.6: fix output globals importing export output globals use portable strndup implementation unix sockets aren't available on windows dll export APIs needed by phpdbg fix sapi/phpdbg/config.w32 Don't treat warnings as failures in the junit output
Diffstat (limited to 'main')
-rw-r--r--main/output.c6
-rw-r--r--main/php_main.h3
-rw-r--r--main/php_output.h6
3 files changed, 11 insertions, 4 deletions
diff --git a/main/output.c b/main/output.c
index 3cafebb730..05d6b27c52 100644
--- a/main/output.c
+++ b/main/output.c
@@ -35,7 +35,11 @@
#include "zend_stack.h"
#include "php_output.h"
-ZEND_DECLARE_MODULE_GLOBALS(output);
+#ifdef ZTS
+PHPAPI int output_globals_id;
+#else
+PHPAPI php_output_globals output_globals;
+#endif
const char php_output_default_handler_name[sizeof("default output handler")] = "default output handler";
const char php_output_devnull_handler_name[sizeof("null output handler")] = "null output handler";
diff --git a/main/php_main.h b/main/php_main.h
index f03e644c8d..94a6299fc3 100644
--- a/main/php_main.h
+++ b/main/php_main.h
@@ -50,9 +50,6 @@ PHPAPI int php_handle_auth_data(const char *auth TSRMLS_DC);
PHPAPI void php_html_puts(const char *str, size_t siz TSRMLS_DC);
PHPAPI int php_stream_open_for_zend_ex(const char *filename, zend_file_handle *handle, int mode TSRMLS_DC);
-extern void php_call_shutdown_functions(TSRMLS_D);
-extern void php_free_shutdown_functions(TSRMLS_D);
-
/* environment module */
extern int php_init_environ(void);
extern int php_shutdown_environ(void);
diff --git a/main/php_output.h b/main/php_output.h
index c176063c3b..6da02a4c2c 100644
--- a/main/php_output.h
+++ b/main/php_output.h
@@ -151,6 +151,12 @@ ZEND_BEGIN_MODULE_GLOBALS(output)
int flags;
ZEND_END_MODULE_GLOBALS(output)
+#ifdef ZTS
+PHPAPI extern int output_globals_id;
+#else
+PHPAPI extern php_output_globals output_globals;
+#endif
+
/* there should not be a need to use OG() from outside of output.c */
#ifdef ZTS
# define OG(v) TSRMG(output_globals_id, zend_output_globals *, v)