#49949 [Bgs]: ftp_chmod function set permission incorrect!
| From: | contact at ireallyhost dot com | Date: | Fri, 23 Oct 2009 06:08:08 +0000 |
| Subject: | #49949 [Bgs]: ftp_chmod function set permission incorrect! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-143816@lists.php.net to get a copy of this message | ||
ID: 49949
User updated by: contact at ireallyhost dot com
Reported By: contact at ireallyhost dot com
Status: Bogus
Bug Type: FTP related
Operating System: Linux
PHP Version: 5.2.11
New Comment:
i'm sorry misunderstanding and ignorance,
thank you very much for take care.
...
Previous Comments:
------------------------------------------------------------------------
[2009-10-22 10:46:57] felipe@php.net
If you have a string '0664', you must to use octdec() function.
------------------------------------------------------------------------
[2009-10-22 02:50:29] contact at ireallyhost dot com
Description:
------------
ftp_chmod function
Permission file incorrect!
when set permission from variable
Reproduce code:
---------------
:::::example:::::::
$file = 'path/example.php';
$permission = 0664; or $permission = "0664";
===ftp function==
ftp_chmod($conn_id, $permission,$file)
!! invalid permission file (result is 204)
but
ftp_chmod($conn_id, 0664,$file)
!! Permission file 0664 is ok
Expected result:
----------------
$permission = 0664; or $permission = "0664";
ftp_chmod($conn_id, $permission,$file)
permission file is 0664
Actual result:
--------------
-
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49949&edit=1