summaryrefslogtreecommitdiff
path: root/main/output.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-03-14 23:56:07 +0000
committerMarcus Boerger <helly@php.net>2004-03-14 23:56:07 +0000
commit97b5bb474e027643278ae4358d8fc69bf502d0eb (patch)
tree1e6eb1808ba6c257daf8a04c1ef7498d59e9f8cc /main/output.c
parent04a242541bdcd67e7abc12d0b044cf68516fa4b3 (diff)
downloadphp-git-97b5bb474e027643278ae4358d8fc69bf502d0eb.tar.gz
Guard display_startup_errors with checking for default (working) output
functions.
Diffstat (limited to 'main/output.c')
-rw-r--r--main/output.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/main/output.c b/main/output.c
index ff3e3a49b5..7505066196 100644
--- a/main/output.c
+++ b/main/output.c
@@ -32,8 +32,6 @@
#define OB_DEFAULT_HANDLER_NAME "default output handler"
/* output functions */
-static int php_ub_body_write(const char *str, uint str_length TSRMLS_DC);
-static int php_ub_body_write_no_header(const char *str, uint str_length TSRMLS_DC);
static int php_b_body_write(const char *str, uint str_length TSRMLS_DC);
static int php_ob_init(uint initial_size, uint block_size, zval *output_handler, uint chunk_size, zend_bool erase TSRMLS_DC);
@@ -49,7 +47,7 @@ php_output_globals output_globals;
#endif
/* {{{ php_default_output_func */
-static inline int php_default_output_func(const char *str, uint str_len TSRMLS_DC)
+PHPAPI int php_default_output_func(const char *str, uint str_len TSRMLS_DC)
{
fwrite(str, 1, str_len, stderr);
return str_len;
@@ -675,7 +673,7 @@ static int php_b_body_write(const char *str, uint str_length TSRMLS_DC)
/* {{{ php_ub_body_write_no_header
*/
-static int php_ub_body_write_no_header(const char *str, uint str_length TSRMLS_DC)
+PHPAPI int php_ub_body_write_no_header(const char *str, uint str_length TSRMLS_DC)
{
int result;
@@ -695,7 +693,7 @@ static int php_ub_body_write_no_header(const char *str, uint str_length TSRMLS_D
/* {{{ php_ub_body_write
*/
-static int php_ub_body_write(const char *str, uint str_length TSRMLS_DC)
+PHPAPI int php_ub_body_write(const char *str, uint str_length TSRMLS_DC)
{
int result = 0;