#36352 [Com]: writing to max sized file "crashes" php/apache

From: Date: Fri, 10 Feb 2006 16:43:54 +0000
Subject: #36352 [Com]: writing to max sized file "crashes" php/apache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93133@lists.php.net to get a copy of this message
ID: 36352 Comment by: michael202 at gmx dot net Reported By: michael202 at gmx dot de Status: Feedback Bug Type: Reproducible crash Operating System: Linux PHP Version: 5.1.2 New Comment: File in question is exactly 2147483647 Byte large 1 Byte below 2^31. Previous Comments: ------------------------------------------------------------------------ [2006-02-10 15:15:30] tony2001@php.net 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#93133) next »