Disable zlib on PHP 5.6
This commit is contained in:
parent
7c7d2cb50c
commit
e7fff53d9d
@ -13,5 +13,7 @@ if (!function_exists('is_iterable')) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!function_exists('error_clear_last')) {
|
if (!function_exists('error_clear_last')) {
|
||||||
function error_clear_last() {}
|
function error_clear_last() {
|
||||||
|
@trigger_error("");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -64,6 +64,7 @@ cd ..
|
|||||||
cp phar5/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php phar5/vendor/amphp/amp/lib/Coroutine.php
|
cp phar5/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php phar5/vendor/amphp/amp/lib/Coroutine.php
|
||||||
sed 's/namespace danog\\MadelineProto;/namespace Amp;/g' -i phar5/vendor/amphp/amp/lib/Coroutine.php
|
sed 's/namespace danog\\MadelineProto;/namespace Amp;/g' -i phar5/vendor/amphp/amp/lib/Coroutine.php
|
||||||
sed 's/public static function echo/public static function echo_/g' -i phar5/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php
|
sed 's/public static function echo/public static function echo_/g' -i phar5/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php
|
||||||
|
find phar5/vendor/amphp -type f -name '*.php' -exec sed "s/extension_loaded[(]'zlib'[)]/false/g" -i {} +
|
||||||
php -v
|
php -v
|
||||||
|
|
||||||
php=5
|
php=5
|
||||||
|
Loading…
Reference in New Issue
Block a user