Fix warnings when some code reuses the phpvfscomposer:// stream wrapper to try and access other files, refs #10387
parent
2cd16b4578
commit
75e4d30151
|
@ -355,7 +355,12 @@ if (PHP_VERSION_ID < 80000) {
|
||||||
|
|
||||||
public function url_stat(\$path, \$flags)
|
public function url_stat(\$path, \$flags)
|
||||||
{
|
{
|
||||||
return stat(substr(\$path, 17));
|
\$path = substr(\$path, 17);
|
||||||
|
if (file_exists(\$path)) {
|
||||||
|
return stat(\$path);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue