summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/output.c5
-rw-r--r--main/output.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/ext/standard/output.c b/ext/standard/output.c
index fa49c05035..7ef875aa3f 100644
--- a/ext/standard/output.c
+++ b/ext/standard/output.c
@@ -105,7 +105,7 @@ PHPAPI int php_start_ob_buffer(zval *output_handler)
PHPAPI void php_end_ob_buffer(int send_buffer)
{
char *final_buffer=NULL;
- int final_buffer_length;
+ int final_buffer_length=0;
zval *alternate_buffer=NULL;
SLS_FETCH();
OLS_FETCH();
@@ -410,6 +410,9 @@ PHP_FUNCTION(ob_start)
output_handler->refcount++;
}
break;
+ default:
+ ZEND_WRONG_PARAM_COUNT();
+ break;
}
if (php_start_ob_buffer(output_handler)==FAILURE) {
php_error(E_WARNING, "Cannot use output buffering in output buffering display handlers");
diff --git a/main/output.c b/main/output.c
index fa49c05035..7ef875aa3f 100644
--- a/main/output.c
+++ b/main/output.c
@@ -105,7 +105,7 @@ PHPAPI int php_start_ob_buffer(zval *output_handler)
PHPAPI void php_end_ob_buffer(int send_buffer)
{
char *final_buffer=NULL;
- int final_buffer_length;
+ int final_buffer_length=0;
zval *alternate_buffer=NULL;
SLS_FETCH();
OLS_FETCH();
@@ -410,6 +410,9 @@ PHP_FUNCTION(ob_start)
output_handler->refcount++;
}
break;
+ default:
+ ZEND_WRONG_PARAM_COUNT();
+ break;
}
if (php_start_ob_buffer(output_handler)==FAILURE) {
php_error(E_WARNING, "Cannot use output buffering in output buffering display handlers");