
Am 15.12.20 um 08:40 schrieb Arjen de Korte:
According to https://en.opensuse.org/openSUSE:Packaging_PHP
PHP applications should put PHP files under /usr/share/php/{<Vendor Name> or <Application Name>}.
Currently, the /usr/share/php directory is not in the filesystem package and also not provided by PHP{7,8}. Should this directory be provided by PHP{7,8} or should packages create this directory themselves as needed? Or should packages install in the /usr/share/php{7,8} instead?
Dear Arjen! Prior to PHP7 we used to store al kind of PHP-libraries in /usr/share/php5. There were massive troubles, switching from PHP5 to PHP7, as new packages had to be created for all libraries. Many http-config-files had to be fixed, too. Therefore I highly vote to start moving all PHP packages to /usr/share/php without a version number. In case different packages for the upcoming 8 is to be used, version numbers should be added as it is done for other system libraries [1] instead of using PHP version numbers in software packages. This allows us to have single packages use-able for different PHP-versions where ever possible. Only compiled PHP-extensions should be stored in /usr/share/php{7,8} directories. Keeping all the packages under /usr/share/php additionally simplifies security settings: Apparmor can allow all stuff within the path to be used - with a single line of configuration. [1] https://en.opensuse.org/openSUSE:Shared_library_packaging_policy -- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna