You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.8 KiB

27 years ago
27 years ago
27 years ago
27 years ago
28 years ago
27 years ago
28 years ago
28 years ago
27 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP version 4.0 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 2.02 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available at through the world-wide-web at |
  10. | http://www.php.net/license/2_02.txt. |
  11. | If you did not receive a copy of the PHP license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@php.net so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Authors: Zeev Suraski <zeev@zend.com> |
  16. +----------------------------------------------------------------------+
  17. */
  18. #ifndef _OUTPUT_BUFFER
  19. #define _OUTPUT_BUFFER
  20. #include "php.h"
  21. PHPAPI void php_output_startup(void);
  22. PHPAPI int php_body_write(const char *str, uint str_length);
  23. PHPAPI int php_header_write(const char *str, uint str_length);
  24. PHPAPI void php_start_ob_buffering(void);
  25. PHPAPI void php_end_ob_buffering(int send_buffer);
  26. PHPAPI int php_ob_get_buffer(pval *p);
  27. PHPAPI void php_start_implicit_flush(void);
  28. PHPAPI void php_end_implicit_flush(void);
  29. PHPAPI char *php_get_output_start_filename(void);
  30. PHPAPI int php_get_output_start_lineno(void);
  31. PHP_FUNCTION(ob_start);
  32. PHP_FUNCTION(ob_end_flush);
  33. PHP_FUNCTION(ob_end_clean);
  34. PHP_FUNCTION(ob_get_contents);
  35. PHP_FUNCTION(ob_implicit_flush);
  36. PHP_GINIT_FUNCTION(output);
  37. #endif /* _OUTPUT_BUFFER */