ID:               36352
 Updated by:       [EMAIL PROTECTED]
 Reported By:      michael202 at gmx dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Linux
 PHP Version:      5.1.2
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2006-02-10 14:40:17] michael202 at gmx dot de

Description:
------------
a log-file has reached its maxmimum file size allowed by the 
operation and file system.

Appending further additional byte to this file ends the php and apache
process without any message. Nothing in error_log and console output.

Script procession simply stops.


Reproduce code:
---------------
  function append_to_file($aFilename, $aData)
  {
    clearstatcache();
    
      $fh = fopen($aFilename, 'a');
      if ($fh === false) {
        return (-1);
      }
      $result = fwrite($fh, $aData);
      fclose($fh);

    return ($result);
  }


Expected result:
----------------
Error Message or Warning and script continues to execute

tested with
php 5.1.2 and 5.0.5


Actual result:
--------------
script stopped/ended without any notice



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36352&edit=1

Reply via email to