diff options
author | Antony Dovgal <tony2001@php.net> | 2007-02-21 21:57:21 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-02-21 21:57:21 +0000 |
commit | 4a95928d1dc9c22f2f772c9136581a410efa573c (patch) | |
tree | 3d4ef7e7655d9ee2e357e26c182f07adab2bb70b /main/streams/plain_wrapper.c | |
parent | 2a019a14bf221d71ccea072abec95d5288521ca3 (diff) | |
download | php-git-4a95928d1dc9c22f2f772c9136581a410efa573c.tar.gz |
MFH: implement PHP_STREAM_FLAG_NO_CLOSE and avoid hacks
Diffstat (limited to 'main/streams/plain_wrapper.c')
-rw-r--r-- | main/streams/plain_wrapper.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 430f789732..365b6c8e5f 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -392,16 +392,7 @@ static int php_stdiop_close(php_stream *stream, int close_handle TSRMLS_DC) data->file = NULL; } } else if (data->fd != -1) { -#if PHP_DEBUG - if ((data->fd == 1 || data->fd == 2) && 0 == strcmp(sapi_module.name, "cli")) { - /* don't close stdout or stderr in CLI in DEBUG mode, as we want to see any leaks */ - ret = 0; - } else { - ret = close(data->fd); - } -#else ret = close(data->fd); -#endif data->fd = -1; } else { return 0; /* everything should be closed already -> success */ |