Bug #16432 Updated: fwrite fails on long text string

From: Date: Thu, 04 Apr 2002 18:47:26 +0000
Subject: Bug #16432 Updated: fwrite fails on long text string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-4061@lists.php.net to get a copy of this message
ID: 16432 Updated by: nielsene@mit.edu Reported By: nielsene@mit.edu Status: Feedback Bug Type: Filesystem function related Operating System: Linux 2.2.18 PHP Version: 4.1.2 New Comment: I can't install the RC on the server right now (its a production machine and my dev is currently under repair). If its not easily reproduceable, I guess don't worry about it, the workaround for me isn't that hard. Previous Comments: ------------------------------------------------------------------------ [2002-04-04 13:44:03] sander@php.net Can't reproduce. Just wrote about 300 megs in one call :) I'm runnig Linux 2.4.17. Can you try 4.2.0RC2 from www.php.net/~derick ? ------------------------------------------------------------------------ [2002-04-04 13:28:06] nielsene@mit.edu fwrite appears to fail when the input string is too long (on the order of 160k). I've been creating dynamic stats pages from a database and writing them to a file. Recently the text to write has exceed some threshold that caused fwrite to not write to the fill and to not return an error code. Writing the files in chunks fixes the problem. However, there is nothing in the documentation about max length of strings to write. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16432&edit=1

« previous php.bugs (#4061) next »