From: foobar Date: Thu, 3 Apr 2003 01:12:47 +0000 (+0000) Subject: CS fix X-Git-Tag: RELEASE_0_5~182 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16da825c7c39d4b157dae3a4faa9ed86e167cd39;p=php CS fix --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 1f62c0a26f..e81446dc60 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -2695,6 +2695,7 @@ PHP_FUNCTION(register_tick_function) tick_fe.calling = 0; tick_fe.arg_count = ZEND_NUM_ARGS(); + if (tick_fe.arg_count < 1) { WRONG_PARAM_COUNT; } @@ -2737,8 +2738,10 @@ PHP_FUNCTION(unregister_tick_function) WRONG_PARAM_COUNT; } - if(!BG(user_tick_functions)) return; - + if (!BG(user_tick_functions)) { + return; + } + if (Z_TYPE_PP(function) != IS_ARRAY) { convert_to_string_ex(function); }