Home » File System » VFS » Bug #8371
emptyFolder can return NULL
Details
| Submitted | 2006-08-07 00:21 UTC |
|---|---|
| From | pear at colin dot guthr dot ie |
| Assigned | chagenbu |
| Status | Closed |
| Package | VFS |
| PHP Version | 5.0.4 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-08-07 00:21 UTC] pear at colin dot guthr dot ie
Description:
------------
While using the FTP VFS, I tried to call emptyFolder on a path that existed remotely but the call returns NULL.
The folder does indeed appear to be empty however. I'd imagine a simple return issue is at fault.
Actually, I just looked at the code and it doesn't return a value!
See approx line 512 (closing brace for the emptyFolder method) in pear/VFS.php and add the "return true;" that's missing!
[2006-08-07 00:31 UTC] chagenbu at php dot net
This bug has been fixed in CVS.
If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.
Thanks!