is_executable ファイルが実行可能かどうかを調べる &reftitle.description; boolis_executable stringfilename ファイルが実行可能かどうかを調べます。 &reftitle.parameters; filename ファイルへのパス。 &reftitle.returnvalues; ファイルが存在し、かつそれが実行可能な場合に &true;、 エラー時に &false; を返します。 POSIX 準拠のシステムでは、 ファイルパーミッションの実行ビットが立っているものが実行可能です。 Windows については、下記を参照ください。 &reftitle.errors; &fs.emits.warning.on.failure; &reftitle.examples; <function>is_executable</function> の例 ]]> &reftitle.notes; ¬e.clearstatcache; &tip.fopen-wrapper.stat; Windows では、Windows API GetBinaryType() が適切に実行可能ファイルと報告した場合に、実行可能と見なされます。 後方互換のため、拡張子 .bat.cmd が付いたファイルも同様に実行可能と見なされます。 PHP 7.4.0 より前のバージョンでは、 拡張子 .bat.cmd が付いた空でないファイルは実行可能と見なされていました。 環境変数 PATHEXT は、is_executable と無関係なことに注意が必要です。 &reftitle.seealso; is_file is_link