Re: 4.3.2 fopen() problem/limit?
| From: | Curt Zirzow | Date: | Thu, 17 Jul 2003 15:24:52 +0000 |
| Subject: | Re: 4.3.2 fopen() problem/limit? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155634@lists.php.net to get a copy of this message | ||
MIKE YRABEDRA <php@323ent.com> wrote:
>
>
> I just upgraded to 4.3.2 and one of my scripts will not work now.
>
> The script basically used fopen to get a file, then it would write it to a
> static page (cutting down on DB access). The script has worked fine for
> months under 4.3.0, but not under 4.3.2
Actually in either case db is much better to go with any sort of data
management. Discussion is to long to type here.... :)
>
> It looks as if it only opens and writes half of the source page. Almost like
> it gets to 20k then stops the stream.
Are you actually using fclose() on the filehandle. I'm not sure how php
handles the situation on a left open filehandle (automatic cleanup
stuff) but if you don't close your file then the write buffer doesn't
get flushed to disk and closed properly, in most cases.
>
> Anyone know if this is a bug or if there is a way to fix the problem?
try making a very simple script that would show your bug, and see if it
still happens.
Curt
--