summaryrefslogtreecommitdiff
path: root/main/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/output.c')
-rw-r--r--main/output.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/main/output.c b/main/output.c
index db82ea10cf..30eb78695b 100644
--- a/main/output.c
+++ b/main/output.c
@@ -758,8 +758,8 @@ PHP_FUNCTION(ob_start)
Flush (send) contents of the output buffer. The last buffer content is sent to next buffer */
PHP_FUNCTION(ob_flush)
{
- if (ZEND_NUM_ARGS() != 0) {
- ZEND_WRONG_PARAM_COUNT();
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
}
if (!OG(ob_nesting_level)) {
@@ -777,8 +777,8 @@ PHP_FUNCTION(ob_flush)
Clean (delete) the current output buffer */
PHP_FUNCTION(ob_clean)
{
- if (ZEND_NUM_ARGS() != 0) {
- ZEND_WRONG_PARAM_COUNT();
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
}
if (!OG(ob_nesting_level)) {
@@ -800,8 +800,8 @@ PHP_FUNCTION(ob_clean)
Flush (send) the output buffer, and delete current output buffer */
PHP_FUNCTION(ob_end_flush)
{
- if (ZEND_NUM_ARGS() != 0) {
- ZEND_WRONG_PARAM_COUNT();
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
}
if (!OG(ob_nesting_level)) {
@@ -822,8 +822,8 @@ PHP_FUNCTION(ob_end_flush)
Clean the output buffer, and delete current output buffer */
PHP_FUNCTION(ob_end_clean)
{
- if (ZEND_NUM_ARGS() != 0) {
- ZEND_WRONG_PARAM_COUNT();
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
}
if (!OG(ob_nesting_level)) {
@@ -844,8 +844,8 @@ PHP_FUNCTION(ob_end_clean)
Get current buffer contents, flush (send) the output buffer, and delete current output buffer */
PHP_FUNCTION(ob_get_flush)
{
- if (ZEND_NUM_ARGS() != 0) {
- ZEND_WRONG_PARAM_COUNT();
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
}
/* get contents */
@@ -870,9 +870,9 @@ PHP_FUNCTION(ob_get_flush)
Get current buffer contents and delete current output buffer */
PHP_FUNCTION(ob_get_clean)
{
- if (ZEND_NUM_ARGS() != 0)
- ZEND_WRONG_PARAM_COUNT();
-
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
+ }
/* get contents */
if (php_ob_get_buffer(return_value TSRMLS_CC)==FAILURE) {
RETURN_FALSE;
@@ -895,8 +895,8 @@ PHP_FUNCTION(ob_get_clean)
Return the contents of the output buffer */
PHP_FUNCTION(ob_get_contents)
{
- if (ZEND_NUM_ARGS() != 0) {
- ZEND_WRONG_PARAM_COUNT();
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
}
if (php_ob_get_buffer(return_value TSRMLS_CC)==FAILURE) {
@@ -909,8 +909,8 @@ PHP_FUNCTION(ob_get_contents)
Return the nesting level of the output buffer */
PHP_FUNCTION(ob_get_level)
{
- if (ZEND_NUM_ARGS() != 0) {
- ZEND_WRONG_PARAM_COUNT();
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
}
RETURN_LONG (OG(ob_nesting_level));
@@ -921,8 +921,8 @@ PHP_FUNCTION(ob_get_level)
Return the length of the output buffer */
PHP_FUNCTION(ob_get_length)
{
- if (ZEND_NUM_ARGS() != 0) {
- ZEND_WRONG_PARAM_COUNT();
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
}
if (php_ob_get_length(return_value TSRMLS_CC)==FAILURE) {