Skip to content

ignore_repeated_errors ini entry does not work #19509

@michaelbrauchl-a11y

Description

@michaelbrauchl-a11y

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions