diff options
author | Dmitry Stogov <dmitry@zend.com> | 2016-06-21 17:56:07 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2016-06-21 17:56:07 +0300 |
commit | 22ecd4428a74a0e9d535f984072d363da39cb052 (patch) | |
tree | fcea2c79213759b45f8aee4118c6a45b8a8868bf /sapi/cli/php_cli.c | |
parent | 307e6b7ac99197aae9917ceeccdb89d7db324f4a (diff) | |
download | php-git-22ecd4428a74a0e9d535f984072d363da39cb052.tar.gz |
Fixed compilation warnings
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 8 |
1 files changed, 2 insertions, 6 deletions
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 |