Bug #52150 [Csd->Bgs]: salam purwokerto
| From: | bjori@php.net | Date: | Wed, 23 Jun 2010 10:01:44 +0000 |
| Subject: | Bug #52150 [Csd->Bgs]: salam purwokerto | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-8420@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52150&edit=1
ID: 52150
Updated by: bjori@php.net
Reported by: marsell_tyka at yahoo dot co dot id
Summary: salam purwokerto
-Status: Closed
+Status: Bogus
Type: Bug
Package: Website problem
Operating System: File::Copy::syscopy
PHP Version: 5.3SVN-2010-06-22 (snap)
Assigned To: kalle
Previous Comments:
------------------------------------------------------------------------
[2010-06-22 23:42:19] marsell_tyka at yahoo dot co dot id
why....
------------------------------------------------------------------------
[2010-06-22 23:30:13] marsell_tyka at yahoo dot co dot id
pleace help me..........
------------------------------------------------------------------------
[2010-06-22 23:08:48] marsell_tyka at yahoo dot co dot id
Description:
------------
copylink
reads the filename linked to by the argument and replaced the link
with a copy of the file. It opens a filehandle to read from the link,
deletes the link, and then copies the filehandle back to the link.
safecopylink
does the same as copylink but without the open-and-delete manouvre.
Instead, it uses File::Spec::Link to find the target of the link and
copies from there.
This module is mostly a wrapper round File::Spec::Link::linked and
File::Copy::copy, the functionality is available in a command line
script copylink.
EXPORT
Nothing by default, can export copylink, `safecopylink.
Test script:
---------------
File::Copy::rmscopy
Expected result:
----------------
copy("file1", "tmp"); # creates the file 'tmp' in the current
directory
copy("file1", ":tmp:"); # creates :tmp:file1
copy("file1", ":tmp"); # same as above
copy("file1", "tmp"); # same as above, if 'tmp' is a
directory
(but don't do
# that, since it may cause confusion, see
example #1)
copy("file1", "tmp:file1"); # error, since 'tmp:' is not a volume
copy("file1", ":tmp:file1"); # ok, partial path
copy("file1", "DataHD:"); # creates DataHD:file1
move("MacintoshHD:fileA", "DataHD:fileB"); # moves (doesn't copy)
files from one
# volume to another
Actual result:
--------------
copy("file1", "tmp"); # creates the file 'tmp' in the current
directory
copy("file1", ":tmp:"); # creates :tmp:file1
copy("file1", ":tmp"); # same as above
copy("file1", "tmp"); # same as above, if 'tmp' is a
directory
(but don't do
# that, since it may cause confusion, see
example #1)
copy("file1", "tmp:file1"); # error, since 'tmp:' is not a volume
copy("file1", ":tmp:file1"); # ok, partial path
copy("file1", "DataHD:"); # creates DataHD:file1
move("MacintoshHD:fileA", "DataHD:fileB"); # moves (doesn't copy)
files from one
# volume to another
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52150&edit=1