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:
Levi Morrison 2022-05-16 16:54:47 -06:00 committed by Arnaud Le Blanc
parent c88dc44a75
commit ffd27bdec4
4 changed files with 15 additions and 10 deletions

View file

@ -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)