diff options
author | Zeev Suraski <zeev@php.net> | 2000-09-03 15:58:50 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-09-03 15:58:50 +0000 |
commit | 2183e2b0be2c6cf7a4f473cb44eaf511fc899312 (patch) | |
tree | 37d941f0add4629ccc8e9d5e7f045a6b28fbea0a | |
parent | 48f13455bebdc96cc5958b9a9cab5ecabce8318d (diff) | |
download | php-git-2183e2b0be2c6cf7a4f473cb44eaf511fc899312.tar.gz |
Make gcc happy
-rw-r--r-- | ext/standard/output.c | 5 | ||||
-rw-r--r-- | main/output.c | 5 |
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"); |