-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Feature: display libpq
version with composer show -p
command
#11683
Comments
Additional Info : constant In my case |
Yes, feel free to send a PR for this adding support for it in PlatformRepo. If the constant is available we can use it, if not available you can probably extract it anyway see other usages of |
Finally it's not a new feature because we have already included it (https://github.com/composer/composer/blob/2.6.5/src/Composer/Repository/PlatformRepository.php#L451-L458) And it's referenced by I didn't saw it, because I've both Saw it know, because I've deepthly analysed source code of v2.6.5 PS: tested with PHP 8.0 here, but my previous attempt with PHP 8.3 gave |
I'll close now, sorry to disturb ! |
If you still want to provide an optimization in case the global constant is defined for php 8.2+ that'd be great :) |
btw I have a feeling PGSQL_LIBPQ_VERSION has been available for longer than 8.2, that commit you linked just moved it as far as I can tell. |
Will check it for global constant in few hours now. |
ok to propose an optimization will constant if available |
Fixed by #11684 |
@Seldaek You've a good feeling ! This constant was introduced in PHP 5.4.4 So It'll be a really good optimization now to use it, rather than PREG usage ;-) @fredden You beat me in race ;-) Nice ! |
Sorry about that. I didn't see that your comments until after I'd opened the pull request. |
Don't worry. Less works for me to do ;-) |
Hello,
This is not a bug, but will help to debug depending on current platform.
Recently, I've begun to start to implement PHP 8.3 support on my project https://github.com/llaville/php-compatinfo-db and when I update the
pgsql
extension reference, I've noticed that newPGSQL_ERRORS_SQLSTATE
constant added since PHP 8.3.0alpha1 (see php/php-src@f31d253#diff-c5961ea04ab805b0059964fac68d6e159095a4b56aaaded0b1b941b8768c0f52) depends on libpq > 11.0BTW, Composer 2.6 did not yet display version of libpq extension with the
composer show -p
command.Native
php --ri pqsql
command print following output (on my platform) :Is it possible to add support to this library (with a new call to
\Composer\Repository\PlatformRepository::addLibrary
) ?Thanks
The text was updated successfully, but these errors were encountered: