Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.0

Bug #2298 Error when writing empty file to FS
Submitted: 2004-09-07 14:41 UTC
From: Lars_hh at gmx dot de Assigned: chagenbu
Status: Closed Package: VFS
PHP Version: 4.3.8 OS: Suse 9.0
Roadmaps: (Not assigned)    
Subscription  


 [2004-09-07 14:41 UTC] Lars_hh at gmx dot de
Description: ------------ When passing an empty Data string to the writeData() function using the file driver an error is risen. PHP's fwrite() reports 0 bytes written which is interpreted as an error. if (@fwrite($fp, $data) == -1) { return PEAR::raiseError(_("Unable to write VFS file data.")); } corrects the problem. Reproduce code: --------------- @see description Expected result: ---------------- @see description Actual result: -------------- @see description

Comments

 [2004-09-07 15:45 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!