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
Removes some more unneeded code #15395
Conversation
@@ -2,7 +2,7 @@ | |||
|
|||
if ! type phpize &> /dev/null; then | |||
echo "phpize missing, skipping build" | |||
echo "If you installed PHP via Aptitude, you can install phpize w/ 'sudo apt-get install php5-dev'" | |||
echo "If you installed PHP via Aptitude, you can install phpize w/ 'sudo apt-get install php7-dev'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does xhprof even still work with PHP7? AFAIK not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could just remove the script... anyone can install it manually anyway if needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to work with php7 meanwhile: http://pecl.php.net/package/xhprof
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall I remove the whole package from composer then, or only the scripts to be executed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet, looks like it was made compatible just last month maybe. We can also keep it then as it is. No Preference. Feel free to merge the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have no preference either. But could you have a look at the composer script. Guess that needs a change. But I'm not using xhprof at all, so it's hard for me to check what needs to be done there:
matomo/core/Composer/ScriptHandler.php
Lines 30 to 33 in b16a791
if (!self::isPhp7orLater()) { | |
// doesn't work with PHP 7 at the moment | |
passthru('misc/composer/clean-xhprof.sh'); | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the isPhp7orLater
for a test and it at least didn't fail for me on PHP 7.3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. removed the checks
98ef2ca
to
3cb9b8d
Compare
No description provided.