Bug #15594 Updated: fwrite doesn't prompt error when no disk space
| From: | sterling@php.net | Date: | Tue, 02 Jul 2002 20:33:21 +0000 |
| Subject: | Bug #15594 Updated: fwrite doesn't prompt error when no disk space | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12860@lists.php.net to get a copy of this message | ||
ID: 15594
Updated by: sterling@php.net
Reported By: tcmleung@yahoo.com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Linux
PHP Version: 4.1.0
New Comment:
not a bug... fwrite returns the bytes written to the buffer, this
doesn't actually reflect the bytes written to disk... If you have a
problem with this, talk to the UNIX people :)
Previous Comments:
------------------------------------------------------------------------
[2002-02-17 22:54:42] tcmleung@yahoo.com
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 this bug report at http://bugs.php.net/?id=15594&edit=1