php-legacy migration leaves startup warnings for php on migrated modules - ignore?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



All,

For nextcloud, etc. the install recommends php-legacy (8.1) and provides a brief synopsis for migration to php-legacy. That works, but then any app calling php instead of php-legacy will receive startup warnings for modules moved to php-legacy. (I still have some apps as well as test code that users php on the command line) I could always just disable the startup warnings completely for php -- but is there a better way?

  For example:

$ php-legacy <<< "<?php phpinfo(); ?>" | sed -n '2p'
PHP Version => 8.1.18

(all good)

$ php <<< "<?php phpinfo(); ?>" | sed -n '2p'
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_pgsql' (tried: /usr/lib/php/modules/pdo_pgsql ... PHP Warning: PHP Startup: Unable to load dynamic library 'pgsql' (tried: /usr/lib/php/modules/pgsql (/usr/lib/php/modules/pgsql ...
PHP Version => 8.2.6

(versions of modules migrated to php-legacy)

Is there no way to leave both installed and not confuse nextcloud? If not, then disabling the php modules is fine and only having the php-legacy versions installed will just necessitate disabling the migrated modules and not having the ability to work with both.

Can I leave both versions of pdo_pgsql and pgsql installed without causing myself grief?

--
David C. Rankin, J.D.,P.E.



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux