1
0
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:
Niels Dossche
2024-07-19 14:51:54 +02:00
committed by GitHub
parent 004f3d5eef
commit d75abdcec4

View File

@@ -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;
}
}