From ef87d15a48ce57c760724df58cf9d873620461fc Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:02:54 +0200 Subject: [PATCH] Add assertion to error path in streams.c This makes the developer intent clear and should prevent some false reports. --- main/streams/streams.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/streams/streams.c b/main/streams/streams.c index 65ec69bffce14..0b3e5cc06cb9e 100644 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -2211,6 +2211,7 @@ PHPAPI php_stream *_php_stream_open_wrapper_ex(const char *path, const char *mod options &= ~USE_PATH; } if (EG(exception)) { + ZEND_ASSERT(resolved_path == NULL); return NULL; } }