Task #102370
closedMore a question: The order of the $defaultExecutableSearchPaths Array
0%
Description
Inside the Classfile:
is a PHP Array with known executable Path Informations:
protected $defaultExecutableSearchPaths = [
'/usr/local/bin/',
'/opt/local/bin/',
'/usr/bin/',
'/usr/X11R6/bin/',
'/opt/bin/',
'C:/php/ImageMagick/',
'C:/php/GraphicsMagick/',
'C:/apache/ImageMagick/',
'C:/apache/GraphicsMagick/',
];
I am a little bit confused about the path order if i think about the Unix Directory Tree specifications:
1. /usr/local/bin is for programs that a normal user may run
2. /opt/local/bin Add-on application software packages, optional!
3. /usr/bin is the primary directory for executable programs.
...
Question: Why stand an optional executable path in this order bevor the primary paths of executables
In my opinion this creates unnecessary warnings, maybe there is somthing that i not know here but i guess this would be the better order:
'/usr/bin/',
'/usr/local/bin/',
'/opt/bin/',
'/opt/local/bin/',
'/usr/X11R6/bin/',
.....
Updated by Chris Müller about 1 year ago
From my understanding:
When I install a package locally as an administrator (in /usr/local/bin) this is done on purpose and should have priority about the package from the distribution (installed in /usr/bin).
Updated by Michael Kasten about 1 year ago
Thanks for the answer, that is the point i am totally overseen.
So Ticket can closed