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

From: Date: Fri, 10 Feb 2006 13:40:18 +0000
Subject: #36352 [NEW]: writing to max sized file "crashes" php/apache
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93106@lists.php.net to get a copy of this message
From: michael202 at gmx dot de Operating system: Linux PHP version: 5.1.2 PHP Bug Type: Reproducible crash Bug description: writing to max sized file "crashes" php/apache 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 bug report at http://bugs.php.net/?id=36352&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36352&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36352&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36352&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36352&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36352&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36352&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36352&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36352&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36352&r=support Expected behavior: http://bugs.php.net/fix.php?id=36352&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36352&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36352&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36352&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36352&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36352&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36352&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36352&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36352&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36352&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36352&r=mysqlcfg

« previous php.bugs (#93106) next »