-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Open
Description
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
PHP 8.4.11 cli
Operating System
Windows Server 2019