|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-01 22:59 UTC] jani@php.net
[2008-02-04 10:36 UTC] s dot hopfe at cc-carconsult dot de
[2008-04-03 14:36 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
Description: ------------ Hi, i would ask you about a little problem in my skript. I want to use the init-setting "ignore_repeated_errors" - but it does not things explained in the documentation. For testing this feature, i had wrote a little testscript. (See in Repoduce Code) And on my WinXP - Xammp (It should work on this platform) i tried this. But, i got 10 times the same error - produced in the script. It seems to be wrong. After testing, we add the following command in the top of the file: error_reporting(E_ALL); And we saw that there are NOTICE between the Warnings. So it seem to be a different between the displayed and the real errors. But wenn this functions is called "ignore_repeated_errors" then the compiler should inspect the displayed errors. Because, this function should help to avert the spamming by same errors into the logfile. Reproduce code: --------------- <?php ini_set("ignore_repeated_errors", "1"); ini_set("ignore_repeated_source", "1"); $counter = 0; while(!feof($handle)) { if(++$counter == 10) break; } error_reporting(E_ALL); $counter = 0; while(!feof($handle)) { if(++$counter == 10) break; } ?> Expected result: ---------------- I want to See one Warning Actual result: -------------- I see all 10 warnings - because the notice are hide