diff --git a/mybot.php b/mybot.php index f57e4c5..fcaf486 100644 --- a/mybot.php +++ b/mybot.php @@ -71,7 +71,7 @@ function bot (&$irc, &$data) { md5(uniqid(rand(), true))); file_put_contents($file_name, "phpcode . "\n?>"); // bot処理内容エラーチェック - $exec_result = exec("php -l " . $file_name); + $exec_result = shell_exec("php -l " . $file_name); if (!preg_match("/^No syntax errors/", $exec_result)) { $this->_disconnect(); $this->_message($pattern . ' : ' . $exec_result);