mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +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;
|
options &= ~USE_PATH;
|
||||||
}
|
}
|
||||||
if (EG(exception)) {
|
if (EG(exception)) {
|
||||||
|
ZEND_ASSERT(resolved_path == NULL);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue