From: mmatson at apple dot com Operating system: OS X 10.4.10 PHP version: 5.2.4 PHP Bug Type: Feature/Change Request Bug description: copy() should support context parameters for URLs
Description: ------------ The copy function should accept context parameters since it can accept URL's of the fopen wrapper variety. Specific situation where this is needed is when using ftp:// url's you should be able to specify overwrite context for the destination URL. Reproduce code: --------------- N/A: feature request for filesystem function Expected result: ---------------- copy should be able to over write a destination file when using ftp:// url's Actual result: -------------- Throws error: PHP Warning: copy(ftp://[EMAIL PROTECTED]/testFTP/test): failed to open stream: Remote file already exists and overwrite context option not specified. -- Edit bug report at http://bugs.php.net/?id=42965&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42965&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42965&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42965&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42965&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42965&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42965&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42965&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42965&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42965&r=support Expected behavior: http://bugs.php.net/fix.php?id=42965&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42965&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42965&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42965&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42965&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42965&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42965&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42965&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42965&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42965&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42965&r=mysqlcfg
