79142767

Date: 2024-10-30 21:00:37
Score: 1
Natty:
Report link

This is for people with large codebases who are limited in moving to newer/safer/faster PHP versions only due to the fact that undefined array keys or undefined variables are now warnings in PHP 8.

To suppress undefined-warnings in PHP 8, I have found two main approaches: using a custom error handler with a PHP extension (some C-code) or setting a custom error handler (php-code) in an auto_prepend_file via php.ini.

Run the code with these tweaks until you have time to fix or rewrite that massive codebase.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: D3lity