diff options
author | Johannes Schlüter <johannes@php.net> | 2011-02-22 12:51:43 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2011-02-22 12:51:43 +0000 |
commit | 960e265b6ce275db989ab53fd12836c20d45d1aa (patch) | |
tree | 033f1df45cfd120529848d994c22337d7be59a8f | |
parent | 2e30412f20002a80ca4ee2ca02acebed415d6770 (diff) | |
download | php-git-960e265b6ce275db989ab53fd12836c20d45d1aa.tar.gz |
Declare vars first. Fix Windows build.
-rw-r--r-- | sapi/cli/php_cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 45fa019b8a..68267c45c5 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -253,6 +253,8 @@ PHP_CLI_API size_t sapi_cli_single_write(const char *str, uint str_length TSRMLS { #ifdef PHP_WRITE_STDOUT long ret; +#else + size_t ret; #endif if (cli_shell_callbacks.cli_shell_write) { @@ -274,8 +276,6 @@ PHP_CLI_API size_t sapi_cli_single_write(const char *str, uint str_length TSRMLS return ret; #else - size_t ret; - ret = fwrite(str, 1, MIN(str_length, 16384), stdout); return ret; #endif |