mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Declare vars first. Fix Windows build.
This commit is contained in:
parent
2e30412f20
commit
960e265b6c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue