diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-08-12 10:45:13 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-08-12 10:45:13 +0200 |
commit | a18ad194c470156f03a5ea2cb9174cc26bc5e618 (patch) | |
tree | eac854652865c5edbba8948289be6baff6b8f747 /main/streams/streams.c | |
parent | f465560a0f3642d866dd856cb8a246de0a4ac212 (diff) | |
download | php-git-a18ad194c470156f03a5ea2cb9174cc26bc5e618.tar.gz |
Fixed bug #78396
Diffstat (limited to 'main/streams/streams.c')
-rw-r--r-- | main/streams/streams.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/streams.c b/main/streams/streams.c index 7d81644724..566cdcde08 100644 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -370,7 +370,7 @@ PHPAPI int _php_stream_free(php_stream *stream, int close_options) /* {{{ */ * stream free operations in shutdown unless they come from the resource list destruction, * or by freeing an enclosed stream (in which case resource list destruction will not have * freed it). */ - if ((EG(flags) & EG_FLAGS_IN_SHUTDOWN) && + if ((EG(flags) & EG_FLAGS_IN_RESOURCE_SHUTDOWN) && !(close_options & (PHP_STREAM_FREE_RSRC_DTOR|PHP_STREAM_FREE_IGNORE_ENCLOSING))) { return 1; } |