From 22ecd4428a74a0e9d535f984072d363da39cb052 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 21 Jun 2016 17:56:07 +0300 Subject: Fixed compilation warnings --- sapi/cli/php_cli.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sapi/cli/php_cli.c') diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 8a9f50eccc..9c80ffd4ad 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -271,11 +271,7 @@ PHP_CLI_API size_t sapi_cli_single_write(const char *str, size_t str_length) /* #endif if (cli_shell_callbacks.cli_shell_write) { - size_t shell_wrote; - shell_wrote = cli_shell_callbacks.cli_shell_write(str, str_length); - if (shell_wrote > -1) { - return shell_wrote; - } + cli_shell_callbacks.cli_shell_write(str, str_length); } #ifdef PHP_WRITE_STDOUT @@ -491,7 +487,7 @@ static const zend_function_entry additional_functions[] = { ZEND_FE(dl, arginfo_dl) PHP_FE(cli_set_process_title, arginfo_cli_set_process_title) PHP_FE(cli_get_process_title, arginfo_cli_get_process_title) - {NULL, NULL, NULL} + PHP_FE_END }; /* {{{ php_cli_usage -- cgit v1.2.1