Bug $config.php can no longer safely touch \XF::app()->error() for all XF\App implementations

There is a bug in this version
X

Xon

Guest
config.php used to allow safely touching a few parts of XF application object., But XF2.3.2 changed something with the XF bootstrapping process, that impacts the \XF\Installer\App context.

When using the installer app (ie php cmd.php xf:upgrade) having \XF::app()->error(); in the config.php causes php install error. Which looks to be from recursive php file inclusion.

It either causes a core dump (php 8.2) or the following error for php 8.3:
Code:

PHP Fatal error...

Read more

Continue reading...