php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46946 Permission problems with rename() and mkdir()
Submitted: 2008-12-26 16:51 UTC Modified: 2008-12-26 17:47 UTC
From: wanda dot movimenta at gmail dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.2CVS-2008-12-26 (snap) OS: Linux hm635 2.6.9-67.0.15
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wanda dot movimenta at gmail dot com
New email:
PHP Version: OS:

 

 [2008-12-26 16:51 UTC] wanda dot movimenta at gmail dot com
Description:
------------
I've wrote a script which, at first, used mkdir() to create folders, and after receive files using the rename() function. But I had problems with permissions because the folder and it's files receveid diferent owner and group and the permissions were rw-------. Well I've changed my program to create the folders through ftp_mkdir (). In the folder worked. But after using rename() function to transfer files the files owner's and group's stay different from the folder, and the permissions are rw-------.
My ISP says that this is a PHP bug and they are trying to solve it. Well I'd like to know if this is really a PHP bug or an "ISP bug".
I'd like to know if there is a solution just to tell my Internet Service Provider.
You can see information about php environment using this link: http://www.movimenta.com.br/testephp.php

Thanks in advance


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-26 17:45 UTC] jani@php.net
Most likely ISP bug. Anyway, let the ISP folks report it as they're 
the ones who can give proper feedback and possibly test any 
snapshots.
 [2008-12-26 17:47 UTC] wanda dot movimenta at gmail dot com
Ok, thanks.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Apr 11 23:00:01 2026 UTC