mirror of
https://github.com/php/php-src.git
synced 2024-11-30 21:35:36 +08:00
Use known string "file" in stream layer
This commit is contained in:
parent
80ec2346f4
commit
5142a06506
@ -1814,7 +1814,7 @@ PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, const
|
||||
}
|
||||
|
||||
/* Check again, the original check might have not known the protocol name */
|
||||
if ((wrapper = zend_hash_str_find_ptr(wrapper_hash, "file", sizeof("file")-1)) != NULL) {
|
||||
if ((wrapper = zend_hash_find_ptr(wrapper_hash, ZSTR_KNOWN(ZEND_STR_FILE))) != NULL) {
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user