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

This topic has been solved
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 a hard php interpreter error.

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

PHP Fatal error: Maximum call stack size of 8339456 bytes...

Read more

Continue reading...