I have upgraded my server Ubuntu version, and with it, PHP to 8.1.
After finishing all that stuff, I noticed that PHP die() function is not working properly:
Example 1 -> die("Lorem ipsum"); // not showing anything at all
Example 2 -> echo "Lorem"; die("Ipsum"); // showing "Lorem"
In my local apache it works fine, I don't know where to look.
Things I tried:
- Turning error_reporting to ALL.
- Checking flushing values at php.ini.
- Do manual flush.
- Tried directly with CLI using "php -a" command

Do you have any idea what can I look for?