New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove upgradephp #16650
base: 5.x-dev
Are you sure you want to change the base?
Remove upgradephp #16650
Conversation
Guess we could simply use |
I'd suggest to require |
That's a good idea. As it is already a dependency of twig adding it explicitly shouldn't even add any code. |
@Findus23 might maybe make sense to split that PR into multiple parts and remove that stuff step by step. |
d01d967
to
6c33664
Compare
I've just checked that one. If
|
fd272e6
to
d391e39
Compare
according to https://www.php.net/manual/en/function.utf8-encode.php the function is part of core PHP since 7.2
replace with Common::safe_unserialize()
see utf8_encode
exists since PHP 7
exists since php 5.0.5
as this should be handled by matomo-org/component-ini/ instead
d391e39
to
61f5f0d
Compare
should be fine as it is a core part of PHP 7.2+
should be possible to replace with Common::safe_unserialize() in all cases
???
exists in PHP 7+
exist since PHP 5.0.5
exist since early PHP 5
parse_ini_file()
as matomo-org/component-ini should handle this well. Might be an issue if
parse_ini_file
is used anywhere directly (but shouldn't be the case. Maybe also check if this implementation had fixes that are missing in the componentis used in many places in Matomo.
glob
is checked as an optional function in the system checkI'm a bit confused by this polyfill. Wouldn't this break checks if
file_get_contents
was disabled and this was used instead to download files?Is used by
ProxyHttp::serverStaticFile
, but only advantage seems to be supporting partial files (which is used nowhere in Matomo)possibly still needed. Maybe find a better place for them
this seems to only be a bug with a specific 5.x release
it seems like this is used to silence the dump() function from development (var-dumper) during release, but it is used nowhere
most likely still needed to avoid Call to undefined function Piwik\fnmatch() #11237
This is mostly a proof of concept. It would be great if someone who knows more about why these functions exist could take over.