mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Stop closing stderr and stdout streams (#8570)
Extensions may (and do) write to stderr in mshutdown and similar. In the best case, with the stderr stream closed, it's just swallowed. However, some libraries will do things like try to detect color, and these will outright fail and cause an error path to be taken.
This commit is contained in:
parent
c88dc44a75
commit
ffd27bdec4
4 changed files with 15 additions and 10 deletions
|
@ -51,6 +51,7 @@ ZEND_BEGIN_MODULE_GLOBALS(zend_test)
|
|||
HashTable global_weakmap;
|
||||
int replace_zend_execute_ex;
|
||||
int register_passes;
|
||||
bool print_stderr_mshutdown;
|
||||
zend_test_fiber *active_fiber;
|
||||
ZEND_END_MODULE_GLOBALS(zend_test)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue