Welcome Guest, Not a member yet? Register   Sign In
Error view exception is not showing the source code in PHP8.3 - Codeigniter v4.4.4
#1

I have problem here, when I run PHP 8.3 the error view like this :
[Image: Screenshot-3.jpg]





File : vendor\codeigniter4\framework\system\Debug\BaseExceptionHandler.php
Line : 185

PHP Code:
if ( version_compare(PHP_VERSION'8.3.0''<') ) {
  $source str_replace('<br />'"\n"$source[1]);
  $source explode("\n"str_replace("\r\n""\n"$source));


I update the code like that and works to PHP 7 or  PHP 8.3.
So, why like that ?
Reply


Messages In This Thread
Error view exception is not showing the source code in PHP8.3 - Codeigniter v4.4.4 - by adimancifi - 01-04-2024, 07:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB