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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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