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
Composer gives .ini hints about missing extensions #3177
Conversation
{ | ||
$paths = array(php_ini_loaded_file()); | ||
|
||
if ($additionalFiles = php_ini_scanned_files()) { |
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.
php_ini_scanned_files
won't work with hhvm yet. facebook/hhvm#3872
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.
For now, you can use:
if ($additionalFiles = (defined('HHVM_VERSION') ? [] : php_ini_scanned_files())) {
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.
a false return is a valid return though and more inline how it seems like it will be implemented initially.
Thanks @jrobeson and @Majkl578 for spotting HHVM incompatibility. Just pushed updated version. |
Great patch. Lack of feedback is a devil with missing extensions. |
+1 |
1 similar comment
+1 |
Hi @Seldaek, I’m just wondering what the status of this PR is. I know you may be very busy but I feel disappointed because I didn’t get a response in almost two years. It would help me to know if there’s anything I could do better here or if it’s not going in ever. Thanks :) |
@singles hey, really sorry about the delay merging this :/ It totally escaped me and I haven't had time to go over all open PRs in a long time. Thanks for the work though! It looks better like that and hopefully will help newcomers figure out what's up with extensions. |
Implements feature described in #2756 (no opinions there, so I chose 4th option - one information at the end).