mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
Add assertion to error path in streams.c (#15027)
This makes the developer intent clear and should prevent some false reports.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user