Description
The following code:
<?php
ini_set('ignore_repeated_errors', 1);
for($i=0; $i<10; $i++ ) {
trim($at);
}
?>
Resulted in this output in the error-log-file:
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
But I expected this output in the error-log-file instead:
[18-Aug-2025 04:51:50 Europe/Vienna] PHP Warning: Undefined variable $at in D:\Projekte\System\error_test\test.php on line 4
PHP Version
Operating System
Windows Server 2019
Description
The following code:
Resulted in this output in the error-log-file:
But I expected this output in the error-log-file instead:
PHP Version
Operating System
Windows Server 2019