diff --git a/.travis.yml b/.travis.yml index 02e9f8d89..696c2ceed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ php: - 5.6 before_script: - - pecl install channel://pecl.php.net/pthreads-0.1.0 + - pecl install channel://pecl.php.net/pthreads-2.0.2 - echo | pecl install channel://pecl.php.net/yaml-1.1.1 script: diff --git a/src/PocketMine/PocketMine.php b/src/PocketMine/PocketMine.php index e00aa6858..80713742b 100644 --- a/src/PocketMine/PocketMine.php +++ b/src/PocketMine/PocketMine.php @@ -337,8 +337,8 @@ namespace PocketMine { if(substr_count($pthreads_version, ".") < 2){ $pthreads_version = "0.$pthreads_version"; } - if(version_compare($pthreads_version, "0.1.0") < 0){ - console("[ERROR] pthreads >= 0.1.0 is required, while you have $pthreads_version.", true, true, 0); + if(version_compare($pthreads_version, "2.0.0") < 0){ + console("[ERROR] pthreads >= 2.0.0 is required, while you have $pthreads_version.", true, true, 0); ++$errors; } } diff --git a/src/build/compile.sh b/src/build/compile.sh index 72794f674..56a43dac2 100644 --- a/src/build/compile.sh +++ b/src/build/compile.sh @@ -6,7 +6,7 @@ ZLIB_VERSION="1.2.8" OPENSSL_VERSION="1.0.0l" CURL_VERSION="curl-7_35_0" LIBEDIT_VERSION="0.3" -PTHREADS_VERSION="1.0.1" +PTHREADS_VERSION="2.0.2" WEAKREF_VERSION="0.2.2" PHPYAML_VERSION="1.1.1" YAML_VERSION="0.1.4"