Rev 1068 | Rev 1133 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1068 | Rev 1129 | ||
---|---|---|---|
Line 103... | Line 103... | ||
103 | # Change the PHP 7.2 requirement to PHP 7.0 |
103 | # Change the PHP 7.2 requirement to PHP 7.0 |
104 | # Since this is no official packagist package, composer does not know the required php version, |
104 | # Since this is no official packagist package, composer does not know the required php version, |
105 | # so we do not need to patch platform_check.php |
105 | # so we do not need to patch platform_check.php |
106 | sed -i 's@private function serialize($item): void@private function serialize($item)/*: void*/ // ViaThinkSoft: Removed ": void" for PHP 7.0 compatibility@g' plugins/viathinksoft/publicPages/100_whois/whois/json/vendor/aywan/php-json-canonicalization/src/Canonicalizator.php |
106 | sed -i 's@private function serialize($item): void@private function serialize($item)/*: void*/ // ViaThinkSoft: Removed ": void" for PHP 7.0 compatibility@g' plugins/viathinksoft/publicPages/100_whois/whois/json/vendor/aywan/php-json-canonicalization/src/Canonicalizator.php |
107 | 107 | ||
- | 108 | # Fix PHP 8.0 deprecation warning |
|
- | 109 | # see https://github.com/SergeyBrook/php-jws/pull/1 |
|
- | 110 | sed -i 's@openssl_pkey_free@if (version_compare(PHP_VERSION, \x278\.0\.0\x27) < 0) openssl_pkey_free@g' plugins/viathinksoft/publicPages/100_whois/whois/json/vendor/sergeybrook/php-jws/src/JWS/JwsRsa.php |
|
- | 111 | ||
108 | # Fix symfony/polyfill-mbstring to make it compatible with PHP 8.2 |
112 | # Fix symfony/polyfill-mbstring to make it compatible with PHP 8.2 |
109 | # The author does know about the problem (I have opened a GitHub issue), but they did not sync it from the symfony main repo (as polyfill-mbstring is just a fraction of it, for composer) |
113 | # The author does know about the problem (I have opened a GitHub issue), but they did not sync it from the symfony main repo (as polyfill-mbstring is just a fraction of it, for composer) |
110 | # see https://github.com/symfony/polyfill-mbstring/pull/11 |
114 | # see https://github.com/symfony/polyfill-mbstring/pull/11 |
111 | # Great tool for escaping: https://dwaves.de/tools/escape/ |
115 | # Great tool for escaping: https://dwaves.de/tools/escape/ |
112 | sed -i 's@if (\\is_array(\$fromEncoding) || false !== strpos(\$fromEncoding, \x27,\x27)) {@if (\\is_array(\$fromEncoding) || (null !== \$fromEncoding \&\& false !== strpos(\$fromEncoding, \x27,\x27))) {@g' vendor/symfony/polyfill-mbstring/Mbstring.php |
116 | sed -i 's@if (\\is_array(\$fromEncoding) || false !== strpos(\$fromEncoding, \x27,\x27)) {@if (\\is_array(\$fromEncoding) || (null !== \$fromEncoding \&\& false !== strpos(\$fromEncoding, \x27,\x27))) {@g' vendor/symfony/polyfill-mbstring/Mbstring.php |