mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
export output globals
needed by phpdbg
This commit is contained in:
parent
4b8f411d31
commit
5d76185792
2 changed files with 11 additions and 1 deletions
|
@ -35,7 +35,11 @@
|
||||||
#include "zend_stack.h"
|
#include "zend_stack.h"
|
||||||
#include "php_output.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_default_handler_name[sizeof("default output handler")] = "default output handler";
|
||||||
const char php_output_devnull_handler_name[sizeof("null output handler")] = "null output handler";
|
const char php_output_devnull_handler_name[sizeof("null output handler")] = "null output handler";
|
||||||
|
|
|
@ -152,6 +152,12 @@ ZEND_BEGIN_MODULE_GLOBALS(output)
|
||||||
int output_start_lineno;
|
int output_start_lineno;
|
||||||
ZEND_END_MODULE_GLOBALS(output)
|
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 */
|
/* there should not be a need to use OG() from outside of output.c */
|
||||||
#ifdef ZTS
|
#ifdef ZTS
|
||||||
# define OG(v) TSRMG(output_globals_id, zend_output_globals *, v)
|
# define OG(v) TSRMG(output_globals_id, zend_output_globals *, v)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue