-
-
Notifications
You must be signed in to change notification settings - Fork 79
chore: use php-discovery to find matching PHP build #201
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
Conversation
35c76e4 to
0187012
Compare
|
@azjezz thank you! This indeed remove a lot of code from build. I've approved the CI workflow |
|
ah! forgot to define |
489cc2c to
deea2b6
Compare
|
Hi @azjezz, While I appreciate your motivation and considerable efforts to improve the current situation, having a script taking ~10sec to scan my entire I'd rather have a simple environment variable override like But hey, that's only my personal taste. 😉 |
Yes sometimes, I need to test with different compiled version of php (debug) and I know where to find it. In a build context, an environment variable could be more efficient. |
I stand corrected, it does perform some globbing so it's more like under a second, which is much better than I tought initially. Still won't do anything useful in my particular case, but simplifying the build workflow is always nice ! 👍🏻 |
df441de to
1b3a6c3
Compare
|
( sorry about the repeated failure on windows, not testing it ^^" ) |
1b3a6c3 to
86c3a1d
Compare
Signed-off-by: azjezz <azjezz@protonmail.com>
|
passed ✔️ |
Signed-off-by: azjezz <azjezz@protonmail.com>
|
^ removed unused import, won't have any effect on the build result |
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.
LGTM! Thank you!
This reverts commit 3171206.

I currently have over 18 PHP installations locally, having to swipe between them for different projects is kinda annoying, so here's my solution for the problem :)
php-discoverywill attempt to find all PHP builds in the system, even if not listed inPATH, and create a struct representing each build, containing all information necessary for ext-php-rs.note: ext-php-rs will still have to do the work to get
includeson windows, while i can certainly add it as a feature inphp-discovery, i feel that it doesn't belong, and that it should do only 1 job, which is discover available PHP builds.