ID: 44015
Updated by: [EMAIL PROTECTED]
Reported By: s dot hopfe at cc-carconsult dot de
-Status: Open
+Status: Feedback
Bug Type: *General Issues
Operating System: Any
PHP Version: 5.2.5
New Comment:
What _exactly_ is output?
Previous Comments:
------------------------------------------------------------------------
[2008-02-01 13:25:59] s dot hopfe at cc-carconsult dot de
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 this bug report at http://bugs.php.net/?id=44015&edit=1