From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.1.0
PHP Bug Type:     Filesystem function related
Bug description:  fwrite doesn't prompt error when no disk space

The following code should be run in Linux and the harddisk or disk
partition has no much space.
Code:
  $fp = fopen("abc.txt","w");
  fwrite($fp,"abcdefg");
  fclose($fp);

After running the code, the file "abc.txt" is created but with 0 bytes.(No
content in the file). The fwrite function should return 0 if it cannot
write anything on the file.

-- 
Edit bug report at http://bugs.php.net/?id=15594&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=15594&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=15594&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=15594&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15594&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15594&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15594&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=15594&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=15594&r=submittedtwice

Reply via email to