diff options
author | foobar <sniper@php.net> | 2003-04-03 01:12:47 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-04-03 01:12:47 +0000 |
commit | 16da825c7c39d4b157dae3a4faa9ed86e167cd39 (patch) | |
tree | 1de422e33ccb2780623ab465f07879fa86f6bcdf | |
parent | cb38be1bd2a1f05639418202bbe2beaf3cd6c832 (diff) | |
download | php-git-16da825c7c39d4b157dae3a4faa9ed86e167cd39.tar.gz |
CS fix
-rw-r--r-- | ext/standard/basic_functions.c | 7 |
1 files changed, 5 insertions, 2 deletions
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); } |