summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-03-01 03:05:50 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-03-01 03:05:50 +0000
commit82a8d372e5fcbee52769f2c376fad34fec4bf63e (patch)
treee43c8ad75de35a270e87f87067a379f39c4cf6db /ext/standard/basic_functions.c
parent28c5d0f0458304fe6048318567ced2c4610bce19 (diff)
downloadphp-git-82a8d372e5fcbee52769f2c376fad34fec4bf63e.tar.gz
Added ob_get_status() to get array of buffers and it's status.
(DO NOT document this function yet) Fixed crash bug with ob_end_*() function. ob_end_*() will not delete buffers that may not be deleted. php_start_ob_buffer() and php_ob_set_internal_handler() takes parameter for if the buffer created may be deleted or not. Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be deleted until script finshes. Changed ob_*() function that have void return type to bool. All ob_*() functions return TRUE for success, FALSE for failure. @ - Added ob_get_status() to get array of buffers and it's status. (Yasuo) @ - Fixed crash bug with ob_end_*() function. ob_end_*() will not delete @ buffers that may not be deleted. (Yasuo) @ - Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be @ deleted until script finshes. (Yasuo) @ - Changed ob_*() function that have void return type to bool. All ob_*() @ functions return TRUE for success, FALSE for failure. (Yasuo)
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r--ext/standard/basic_functions.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index b8310462fc..8033e577b8 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -734,6 +734,7 @@ function_entry basic_functions[] = {
PHP_FE(ob_end_clean, NULL)
PHP_FE(ob_get_length, NULL)
PHP_FE(ob_get_level, NULL)
+ PHP_FE(ob_get_status, NULL)
PHP_FE(ob_get_contents, NULL)
PHP_FE(ob_implicit_flush, NULL)
@@ -1883,7 +1884,7 @@ PHP_FUNCTION(highlight_file)
convert_to_string(filename);
if (i) {
- php_start_ob_buffer (NULL, 0 TSRMLS_CC);
+ php_start_ob_buffer (NULL, 0, 1 TSRMLS_CC);
}
php_get_highlight_struct(&syntax_highlighter_ini);
@@ -1916,7 +1917,7 @@ PHP_FUNCTION(highlight_string)
convert_to_string(expr);
if (i) {
- php_start_ob_buffer (NULL, 0 TSRMLS_CC);
+ php_start_ob_buffer (NULL, 0, 1 TSRMLS_CC);
}
php_get_highlight_struct(&syntax_highlighter_ini);