From: Dmitry Stogov Date: Fri, 29 Apr 2016 09:49:41 +0000 (+0300) Subject: Fixed condition X-Git-Tag: php-7.1.0alpha1~237^2~5^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70171affd602b6a79bf8179a565ed1f0add86f18;p=php Fixed condition --- diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 5d789d2626..dffb57264c 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -304,7 +304,7 @@ static size_t sapi_cli_ub_write(const char *str, size_t str_length) /* {{{ */ if (cli_shell_callbacks.cli_shell_ub_write) { size_t ub_wrote; ub_wrote = cli_shell_callbacks.cli_shell_ub_write(str, str_length); - if (ub_wrote > -1) { + if (ub_wrote != (size_t)-1) { return ub_wrote; } }