Skip to content

Commit

Permalink
execからshell_execに変更
Browse files Browse the repository at this point in the history
エラーを複数行返すため。
  • Loading branch information
lllnorikolll committed May 5, 2009
1 parent 984918b commit aed7067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mybot.php
Expand Up @@ -71,7 +71,7 @@ function bot (&$irc, &$data) {
md5(uniqid(rand(), true)));
file_put_contents($file_name, "<?php\n" . $row->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);
Expand Down

0 comments on commit aed7067

Please sign in to comment.