Bug #15594: fwrite doesn't prompt error when no disk space
| From: | tcmleung at yahoo dot com | Date: | Mon, 18 Feb 2002 03:54:43 +0000 |
| Subject: | Bug #15594: fwrite doesn't prompt error when no disk space | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-482@lists.php.net to get a copy of this message | ||
From: tcmleung@yahoo.com
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