#32945 [NEW]: copy size 0 file with ftp wrapper
| From: | jxmaster at msn dot com | Date: | Wed, 04 May 2005 15:28:47 +0000 |
| Subject: | #32945 [NEW]: copy size 0 file with ftp wrapper | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-78612@lists.php.net to get a copy of this message | ||
From: jxmaster at msn dot com
Operating system: freebsd4.3,windowsxp,linux9.0
PHP version: 4.3.11
PHP Bug Type: Filesystem function related
Bug description: copy size 0 file with ftp wrapper
Description:
------------
copy('ftp://username:password@ip/path/filename',
'tmp.dat');
If the file in the ftp server has size 0, the copy statment returned
false. However, the file tmp.dat was created with size 0.
copy ('localfile', 'tmp.dat') worked well.
Reproduce code:
---------------
copy('ftp://username:password@ip/path/filename',
'tmp.dat');
Expected result:
----------------
The file tmp.dat is created in the current directory with file zero and
gets a TRUE return.
Actual result:
--------------
The file tmp.dat is created in the current directory with file zero, but
gets a FALSE return.
--
Edit bug report at http://bugs.php.net/?id=32945&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32945&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32945&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32945&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32945&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32945&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32945&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32945&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32945&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32945&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32945&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32945&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32945&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32945&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32945&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32945&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32945&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32945&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32945&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32945&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32945&r=mysqlcfg