summaryrefslogtreecommitdiff
path: root/main/output.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-01-07 18:34:18 +0000
committerFelipe Pena <felipe@php.net>2009-01-07 18:34:18 +0000
commitc7ef31aefb6f127af1586330b31ffc00e0a6e949 (patch)
tree2a1e3a14198c52d05dec37ee43da42e48ac0b24c /main/output.c
parentc0de7f3113ecf46a57d5d8d900f3a71fb44a197e (diff)
downloadphp-git-c7ef31aefb6f127af1586330b31ffc00e0a6e949.tar.gz
- Checking 0 param in the new way [only in this branch]
Diffstat (limited to 'main/output.c')
-rw-r--r--main/output.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/main/output.c b/main/output.c
index 590dcc4581..28a6cea1a4 100644
--- a/main/output.c
+++ b/main/output.c
@@ -558,11 +558,10 @@ static int php_ob_list_each(php_ob_buffer *ob_buffer, zval *ob_handler_array)
*/
PHP_FUNCTION(ob_list_handlers)
{
- if (ZEND_NUM_ARGS()!=0) {
- ZEND_WRONG_PARAM_COUNT();
- RETURN_FALSE;
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
}
-
+
array_init(return_value);
if (OG(ob_nesting_level)) {
if (OG(ob_nesting_level)>1) {