Skip to content

Commit

Permalink
修正useragent生成的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kiddyuchina committed Jun 8, 2017
1 parent 10e489c commit 3b01a2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Beanbun.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,17 @@ public function check()
$text = '';
$version_ok = $pcntl_loaded = $posix_loaded = true;
if(!version_compare(phpversion(), "5.3.3", ">=")) {
$text .= "PHP Version >= 5.3.3 \033[31;40m [fail] \033[0m\n");
$text .= "PHP Version >= 5.3.3 \033[31;40m [fail] \033[0m\n";
$error = true;
}

if(!in_array("pcntl", get_loaded_extensions())) {
$text .= "Extension posix check \033[31;40m [fail] \033[0m\n");
$text .= "Extension posix check \033[31;40m [fail] \033[0m\n";
$error = true;
}

if(!in_array("posix", get_loaded_extensions())) {
$text .= "Extension posix check \033[31;40m [fail] \033[0m\n");
$text .= "Extension posix check \033[31;40m [fail] \033[0m\n";
$error = true;
}

Expand Down

0 comments on commit 3b01a2b

Please sign in to comment.