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] fel...@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