1
0
Fork 0

Fix warnings when some code reuses the phpvfscomposer:// stream wrapper to try and access other files, refs #10387

pull/10412/head
Jordi Boggiano 2021-12-31 10:33:17 +01:00
parent 2cd16b4578
commit 75e4d30151
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 6 additions and 1 deletions

View File

@ -355,7 +355,12 @@ if (PHP_VERSION_ID < 80000) {
public function url_stat(\$path, \$flags)
{
return stat(substr(\$path, 17));
\$path = substr(\$path, 17);
if (file_exists(\$path)) {
return stat(\$path);
}
return false;
}
}
}