Although I have instructed php to only log an error once - i see the error over and over again in my log file. Any ideas why this directive would get ignored? I've restarted apache, etc.
-
Can you post an example?Adam Hopkinson– Adam Hopkinson2009-12-27 00:17:03 +00:00Commented Dec 27, 2009 at 0:17
-
Are you certain you're editing the right php.ini file? Look in phpinfo() to make sure.Darrell Brogdon– Darrell Brogdon2009-12-27 00:18:16 +00:00Commented Dec 27, 2009 at 0:18
2 Answers
This directive will only stop the error from being logged again within the same script run. When the same script is run multiple times, you will still see that error every time.
4 Comments
Besides the ignore_repeated_errors, there is also the ignore_repeated_source ini settings. I think that one would work for you and should stop showing the same error repeatedly, when same file is called over and over.
As PHP manual here says for it:
ignore_repeated_source- Ignore source of message when ignoring repeated messages. When this setting is On you will not log errors with repeated messages from different files or sourcelines