improve error logs?

From: Date: Thu, 31 Aug 2023 05:54:05 +0000
Subject: improve error logs?
Groups: php.general 
Request: Send a blank email to php-general+get-328263@lists.php.net to get a copy of this message
Hello. What is the best way to make a suggestion for future versions of PHP? 1) log report: [31-Aug-2023 17:40:03 Pacific/Auckland] PHP Notice: Array to string conversion in /PATHNAME/cron/V06_dostats.inc.php on line 102 [31-Aug-2023 17:40:03 Pacific/Auckland] AB is NOT an array [31-Aug-2023 17:40:03 Pacific/Auckland] R is NOT an array [31-Aug-2023 17:40:03 Pacific/Auckland] S is NOT an array [31-Aug-2023 17:40:03 Pacific/Auckland] AB is NOT an array [31-Aug-2023 17:40:03 Pacific/Auckland] R is NOT an array [31-Aug-2023 17:40:03 Pacific/Auckland] S is NOT an array [31-Aug-2023 17:40:03 Pacific/Auckland] AB is NOT an array [31-Aug-2023 17:40:03 Pacific/Auckland] R is NOT an array [31-Aug-2023 17:40:03 Pacific/Auckland] S is NOT an array 2) lines: if(is_array($ab)){error_log('AB is an array');} if(! is_array($ab)){error_log('AB is NOT an array');} if(is_array($r)){error_log('R is an array');} if(! is_array($r)){error_log('R is NOT an array');} if(is_array($s)){error_log('S is an array');} if(! is_array($s)){error_log('S is NOT an array');} $text.="REGION: $ab, $r, $s\n"; <<< This is line 102.. SUGGESTION: Can the error message tell us which variable is the problem "array" ? -- Gordon.

« previous php.general (#328263) next »