I have a script which constanly append strings into a file.

For example (this is a test script):

```
$i = 1;
$file = 'wikipedia/test.txt';
$text = 'the quick brown fox jumps over the lazy dog';
while($i!=0)
{
  file_put_contents($file, $text, FILE_APPEND );
}

```

But for an unknown reason my program stops appending strings when the text file reached the file size of 2097156 B . It wasn't a disk space issue since i could still create another text file yet limited to the same exact file size value. 

I tried using other php functions fwrite, fputs but still didn't work out.

Any idea why this problem occurs?