Bug #52150 [NEW]: salam purwokerto

From: Date: Tue, 22 Jun 2010 21:08:51 +0000
Subject: Bug #52150 [NEW]: salam purwokerto
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-8415@lists.php.net to get a copy of this message
From: Operating system: File::Copy::syscopy PHP version: 5.3SVN-2010-06-22 (snap) Package: Website problem Bug Type: Bug Bug description:salam purwokerto 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 bug report at http://bugs.php.net/bug.php?id=52150&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52150&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52150&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52150&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52150&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52150&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52150&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52150&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52150&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52150&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52150&r=support Expected behavior: http://bugs.php.net/fix.php?id=52150&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52150&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52150&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52150&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52150&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52150&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52150&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52150&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52150&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52150&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52150&r=mysqlcfg

« previous php.webmaster (#8415) next »