mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02: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:
parent
004f3d5eef
commit
d75abdcec4
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue