]> granicus.if.org Git - php/commitdiff
export output globals
authorAnatol Belski <ab@php.net>
Wed, 29 Oct 2014 19:02:41 +0000 (20:02 +0100)
committerAnatol Belski <ab@php.net>
Wed, 29 Oct 2014 19:02:41 +0000 (20:02 +0100)
needed by phpdbg

main/output.c
main/php_output.h

index 1dac7179b8eab2de35e145aaf2c4417478668fc8..c2b7b3422dc128a0d6603335f9356730ee1b7b6c 100644 (file)
 #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";
index 0312e256f80048701605704fb7d98b83e16f92c6..947da2c915d03cd964ac23ad9a99213134aee018 100644 (file)
@@ -152,6 +152,12 @@ ZEND_BEGIN_MODULE_GLOBALS(output)
        int output_start_lineno;
 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)