mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
- Ensure that stderr output are not buffered, portability for tests
This commit is contained in:
parent
d0ab70458d
commit
5eb4db5e8f
5 changed files with 68 additions and 0 deletions
|
|
@ -50,6 +50,10 @@ php_output_globals output_globals;
|
|||
PHPAPI int php_default_output_func(const char *str, uint str_len TSRMLS_DC)
|
||||
{
|
||||
fwrite(str, 1, str_len, stderr);
|
||||
/* See http://support.microsoft.com/kb/190351 */
|
||||
#ifdef PHP_WIN32
|
||||
fflush(stderr);
|
||||
#endif
|
||||
return str_len;
|
||||
}
|
||||
/* }}} */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue