From: s dot hopfe at cc-carconsult dot de Operating system: Any PHP version: 5.2.5 PHP Bug Type: *General Issues Bug description: ignore_repeated_source uses from error history
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 -- Edit bug report at http://bugs.php.net/?id=44015&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=44015&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44015&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44015&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44015&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44015&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44015&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44015&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44015&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44015&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44015&r=support Expected behavior: http://bugs.php.net/fix.php?id=44015&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44015&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44015&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44015&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=44015&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=44015&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44015&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44015&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44015&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44015&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44015&r=mysqlcfg