mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
6bebe833a2
Streams will be freed in an unpredictable order during shutdown. Ignore explicit calls to php_stream_close() entirely to avoid use-after-free -- instead let the stream resource destructor deal with it. We have to account for a few special cases: * Enclosed streams should be freed, as the resource destructor will forward to the enclosing stream. * Stream cookies also directly free streams, because we delegate to the cookie destruction if one exists. * Mysqlnd also directly frees streams, because it explicitly removes stream resources (because mysqlnd!) |
||
---|---|---|
.. | ||
cast.c | ||
filter.c | ||
glob_wrapper.c | ||
memory.c | ||
mmap.c | ||
php_stream_context.h | ||
php_stream_filter_api.h | ||
php_stream_glob_wrapper.h | ||
php_stream_mmap.h | ||
php_stream_plain_wrapper.h | ||
php_stream_transport.h | ||
php_stream_userspace.h | ||
php_streams_int.h | ||
plain_wrapper.c | ||
streams.c | ||
transports.c | ||
userspace.c | ||
xp_socket.c |