Skip to content

Commit

Permalink
修改判断版本
Browse files Browse the repository at this point in the history
  • Loading branch information
xtgxiso committed Feb 9, 2017
1 parent 800d9f3 commit 6806fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion App.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace WebWorker;

if ( extension_loaded("swoole") ){
if ( version_compare(SWOOLE_VERSION,'2.0.5') ){
if ( version_compare(SWOOLE_VERSION,'2.0.5') == -1 ){
exit("swoole扩展版本必须大于等于2.0.5\n");
}
}else{
Expand Down

0 comments on commit 6806fab

Please sign in to comment.