윈도우에서 실행파일을 체크하지 못하는 문제 수정

https://xetown.com/questions/1333742
This commit is contained in:
conory 2020-02-07 21:45:11 +09:00
parent 56aca19fd2
commit 482985aa4a

View file

@ -152,7 +152,7 @@ class Storage
public static function isExecutable($path)
{
$path = rtrim($path, '/\\');
if (function_exists('exec'))
if (function_exists('exec') && !starts_with('win', \PHP_OS, false))
{
@exec('/bin/ls -l ' . escapeshellarg($path), $output, $return_var);
if ($return_var === 0)