Disable zlib on PHP 5.6

This commit is contained in:
Daniil Gentili 2019-06-21 16:04:05 +02:00
parent 7c7d2cb50c
commit e7fff53d9d
2 changed files with 4 additions and 1 deletions

View File

@ -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("");
}
} }

View File

@ -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