Skip to content
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

Doesn't use the homebrew installed php #11

Open
kaiyulee opened this issue Nov 4, 2015 · 11 comments
Open

Doesn't use the homebrew installed php #11

kaiyulee opened this issue Nov 4, 2015 · 11 comments

Comments

@kaiyulee
Copy link

kaiyulee commented Nov 4, 2015

Thanks for your great job.
I have an issue~~~

PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20121212/pdo_pgsql.so' - dlopen(/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20121212/pdo_pgsql.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20121212/pgsql.so' - dlopen(/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20121212/pgsql.so, 9): image not found in Unknown on line 0

it uses the built-in php.

which php => /usr/local/opt/php55/bin/php
whereis php => /usr/bin/php

When I type /usr/bin/php -v, it shows the warning above.

Hope update the package form subl3.

@CodeBrauer
Copy link

👍 - would be awesome to provide a config for setting a custom php path.

@tokayer
Copy link

tokayer commented Aug 27, 2017

I have exactly the same issue, is there a fix for this?
Thanks

@CodeBrauer
Copy link

CodeBrauer commented Aug 27, 2017

@tokayer Since there are no updates I just hardcoded my custom PHP path in this line

So the line looks like this:

EXECUTE_COMMAND = "/usr/local/bin/php -l"

You can edit this file here:
bildschirmfoto 2017-08-27 um 20 11 03

@tokayer
Copy link

tokayer commented Aug 27, 2017

Thank so much for responding!
I have a little issue applying your suggestion.
When I go to " ~/Library/Application Support/Sublime Text 3/Packages/" I see a few packages, but not the "PHP Syntax Checker", But I do believe that package is installed on my sublime text, because I keep getting this php warnings.
image

@naomichi-y
Copy link
Owner

naomichi-y commented Aug 28, 2017

@tokayer
Hi, This looks like a php problem. I found a similar problem.
https://github.com/Homebrew/homebrew-php/issues/2544

@tokayer
Copy link

tokayer commented Aug 29, 2017

@naomichi-y
That's true,
It is a php warning but it's only because sublime is loading the wrong php.ini file.
I think the warning i'm getting in sublime is coming from the "PHP Syntax Checker" package, but I can't find the package files in order to change the path of the php.ini file.
I don't see it in "~/Library/Application Support/Sublime Text 3/Packages/", where it should be.
(as "CodeBrauer" suggested).

@CodeBrauer
Copy link

CodeBrauer commented Aug 29, 2017

@tokayer Which OS & Sublime build are you using? - The path I've suggested is default for macOS and Sublime 3

@tokayer
Copy link

tokayer commented Aug 30, 2017

@CodeBrauer
Right, I'm using macOS Sierra version 10.12.6 and sublime 3.
The path you've suggested has a few packages of sublime, but I don't see there the "PHP Syntax Checker".
image

@CodeBrauer
Copy link

CodeBrauer commented Sep 1, 2017

@tokayer Hm, maybe you could do it this way:

  1. Install PackageResourceViewer by Package Control: Install Package
  2. Press CMD+Shift+P
  3. Type prvor for PackageResourceViewer: Open Resource
  4. Search for PHP Syntax Checker
  5. Press enter and select phpSyntaxChecker.py

Now you should be able to edit the file

@tokayer
Copy link

tokayer commented Sep 3, 2017 via email

@dvn-github
Copy link

@CodeBrauer thanks!!!! I was about to disable the plugin, but then I found your excelent solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants