#29731 [Opn->Bgs]: Using ftp_chmod errors out if you use a variable...

From: Date: Wed, 18 Aug 2004 13:25:36 +0000
Subject: #29731 [Opn->Bgs]: Using ftp_chmod errors out if you use a variable...
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-64849@lists.php.net to get a copy of this message
ID: 29731 Updated by: tony2001@php.net Reported By: webmaster at acecoolco dot com -Status: Open +Status: Bogus Bug Type: PHP options/info functions Operating System: Windows PHP Version: 5.0.0 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Read about using *chmod here: http://php.net/chmod Short version: "0777" != 0777. Previous Comments: ------------------------------------------------------------------------ [2004-08-18 13:34:42] webmaster at acecoolco dot com Description: ------------ If you do ftp_chmod($conn_id, 0777, "/blah/public_html/"); it works, if you set $blah = "0777"; and use ftp_chmod($conn_id, $blah, "/blah/public_html/"); or ftp_chmod($conn_id, "$blah", "/blah/public_html/"); then if will end up chmodding 1417 or something... Reproduce code: --------------- If you do ftp_chmod($conn_id, 0777, "/blah/public_html/"); it works, if you set $blah = "0777"; and use ftp_chmod($conn_id, $blah, "/blah/public_html/"); or ftp_chmod($conn_id, "$blah", "/blah/public_html/"); then if will end up chmodding 1417 or something... Expected result: ---------------- chmod as should be... Actual result: -------------- chmods 1417 or so... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29731&edit=1

« previous php.bugs (#64849) next »