diff options
author | Antony Dovgal <tony2001@php.net> | 2006-12-21 00:43:30 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-12-21 00:43:30 +0000 |
commit | b4476a84692e6521e6630bceee435c30f1512b60 (patch) | |
tree | 10adee50974dfc3b6607b7a905c171dcc547ddfd | |
parent | 6f53386349a73f8be8dd5d1d3a84abbb8e222f8e (diff) | |
download | php-git-b4476a84692e6521e6630bceee435c30f1512b60.tar.gz |
MFH
-rw-r--r-- | sapi/cli/php_cli.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 6d8aff915c..2a9265ece9 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -430,6 +430,12 @@ static void cli_register_file_handles(TSRMLS_D) s_err = php_stream_open_wrapper_ex("php://stderr", "wb", 0, NULL, sc_err); if (s_in==NULL || s_out==NULL || s_err==NULL) { + FREE_ZVAL(zin); + FREE_ZVAL(zout); + FREE_ZVAL(zerr); + if (s_in) php_stream_close(s_in); + if (s_out) php_stream_close(s_out); + if (s_err) php_stream_close(s_err); return; } |