Skip to content

Commit d75abdc

Browse files
authored
Add assertion to error path in streams.c (#15027)
This makes the developer intent clear and should prevent some false reports.
1 parent 004f3d5 commit d75abdc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/streams/streams.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2211,6 +2211,7 @@ PHPAPI php_stream *_php_stream_open_wrapper_ex(const char *path, const char *mod
22112211
options &= ~USE_PATH;
22122212
}
22132213
if (EG(exception)) {
2214+
ZEND_ASSERT(resolved_path == NULL);
22142215
return NULL;
22152216
}
22162217
}

0 commit comments

Comments
 (0)