Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#67166 - [php] symbolic links on the executable (bin) ?

Attached to Project: Arch Linux
Opened by Stève Oriol (steveoriol) - Wednesday, 01 July 2020, 14:24 GMT
Last edited by freswa (frederik) - Wednesday, 01 July 2020, 20:37 GMT
Task Type Feature Request
Category Packages: Core
Status Assigned
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


Description: create symbolic links on the executable (bin) so that it is easier to change version of php when you need to change version of PHP (CLI)

imagine that you also have PHP version 7.2 (AUR)
you have :

is it possible to modify for:

and add symbolic links like:
/usr/bin/php >> /usr/bin/php74
/usr/bin/php-config >> /usr/bin/php-config74
/usr/bin/php-fpm >> /usr/bin/php-fpm74
/usr/bin/phpize74 >> /usr/bin/phpize74

So we can easily switch from one version to another, easily and without deleting the executable file, just by repoiting the 4 symbolic links ...

This task depends upon