Skip to content

Commit

Permalink
fix httpが無くてもcURLMultiが使えるはずなのでチェックを変更
Browse files Browse the repository at this point in the history
(かなりやっつけ)
  • Loading branch information
killer4989 authored and open774 committed Jul 11, 2018
1 parent 2304613 commit c6aa2f8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/fetch-subject-txt.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
die('CLI only!');
}

if (!$_conf['expack.use_curl_multi'] && !$_conf['expack.use_pecl_http']) {
fwrite(STDERR, 'Setting of expack.use_curl_multi or expack.use_pecl_http is required.' . PHP_EOL);
exit(1);
}

define('P2_CLI_RUN', 1);
define('P2_FETCH_SUBJECT_TXT_DEBUG', 0);
define('P2_FETCH_SUBJECT_TXT_DEBUG_OUTPUT_FILE', '/tmp/p2_fetch_subject_txt.log');

require __DIR__ . '/../conf/conf.inc.php';

if (!$_conf['expack.use_curl_multi'] && !$_conf['expack.use_pecl_http']) {
fwrite(STDERR, 'Setting of expack.use_curl_multi or expack.use_pecl_http is required.' . PHP_EOL);
exit(1);
}

P2HttpExt::activate();

// }}}
Expand Down

0 comments on commit c6aa2f8

Please sign in to comment.