Project

General

Profile

Actions

Task #102370

closed

More a question: The order of the $defaultExecutableSearchPaths Array

Added by Michael Kasten 12 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Miscellaneous
Target version:
-
Start date:
2023-11-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
easy
Sprint Focus:

Description

Inside the Classfile:

https://github.com/TYPO3-CMS/install/blob/v12.4.4/Classes/Configuration/Image/AbstractImagePreset.php

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/',
.....

Actions

Also available in: Atom PDF