From:             andreas at heigl dot org
Operating system: Mac OS X 10.6
PHP version:      5.3.1
PHP Bug Type:     Filesystem function related
Bug description:  rename across Volumes throws warning "Operation not permitted"

Description:
------------
When renaming files acros Volumes a warning is triggered that the 
"Operation is not permitted. 
The operation is executed though.

Reproduce code:
---------------
- Create two images and mount them (Image1, Image2). 
- Disable the 'Ignore Owner'-Feature on both of them and set permissions
so the WebServer can access the files.
- Add a file to one of the mounted volumes (touch
/Volumes/Image1/testfile)

ini_set ( 'error_reporting', E_ALL );
ini_set ( 'display_errors', true );
rename ( '/Volumes/Image1/testfile', '/Volumes/Image2/testfile' );


Expected result:
----------------
The file /Volumes/Image1/testfile has been copied to 
/Volumes/Image2/testfile ad the original file has been removed.
No error should be triggered

Actual result:
--------------
The file /Volumes/Image1/testfile has been copied to 
/Volumes/Image2/testfile ad the original file has been removed.

Additionally the following error is triggered:
rename(/Volumes/Image1/testfile,/Volumes/Image2/testfile): Operation not 
permitted in renametest.php on line n

-- 
Edit bug report at http://bugs.php.net/?id=50676&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50676&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50676&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50676&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50676&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50676&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50676&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50676&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50676&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50676&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50676&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50676&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50676&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50676&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50676&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50676&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50676&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50676&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50676&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50676&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50676&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50676&r=mysqlcfg

Reply via email to