Skip to content

Commit 7b23cd5

Browse files
committed
no ... creating a streaming with a NULL context is a valid case.
1 parent 4fb80c5 commit 7b23cd5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/fileinfo/fileinfo.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,6 @@ static const char* php_fileinfo_from_path(struct magic_set *magic, const zend_st
292292
if (UNEXPECTED(wrap == NULL)) {
293293
return NULL;
294294
}
295-
/* we need the stream context when there is an appropriate URL protocol */
296-
ZEND_ASSERT(context != NULL);
297295

298296
#ifdef PHP_WIN32
299297
if (php_stream_stat_path_ex(ZSTR_VAL(path), 0, &ssb, context) == SUCCESS) {

0 commit comments

Comments
 (0)