com php-src: Fixed condition: sapi/cli/php_cli.c

From: Date: Fri, 29 Apr 2016 09:49:41 +0000
Subject: com php-src: Fixed condition: sapi/cli/php_cli.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91946@lists.php.net to get a copy of this message
Commit: 70171affd602b6a79bf8179a565ed1f0add86f18 Author: Dmitry Stogov <dmitry@zend.com> Fri, 29 Apr 2016 12:49:41 +0300 Parents: a8d464909738114ed2daadb2b106ad96773d5b8f Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=70171affd602b6a79bf8179a565ed1f0add86f18 Log: Fixed condition Changed paths: M sapi/cli/php_cli.c Diff: diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 5d789d2..dffb572 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; } }

« previous php.cvs (#91946) next »