From:             [EMAIL PROTECTED]
Operating system: GNU/Linux
PHP version:      4.3.0
PHP Bug Type:     Feature/Change Request
Bug description:  ftp_chmod() needed to create a dir and chmod it 777 if SAFE_MODE is 
ENABLED

It is impossible to create a dir and make it chmod 777 when SAFE_MODE is
ENABLED. This is needed when you would like to create a directory for
image uploading for example... like the admin of a site creates a new
model in the CMS, and then a new dir should be created for the model, so
the images arent stored in 1 dir. Ok i've thought of putting binary in the
database.. but this can't be used when using Macromedia FlashMX because
the output must be all paths of the files and not many images on one page
:)

i Checked "Description Possible Solution 
Bug #214: mode for chmod is in decimal instead of octal 
chmod("foo", 777) treats 777 as a decimal number, which forces you to do
octal-decimal conversion. It's doing it with mkdir() as well. This is the
correct behavior. If you want it

to operate on an octal number, give it an

octal number:



chmod("foo", 0777);

 
Bug #3571: Missing Features in the FTP functions." next to it it says:
Looks like it was added. Thanks to whomever did so.
but i do not see the function ftp_chmod() anywhere in the
ftp_functions...

i.e ftp_chmod() would be needed, eventhough chmod isnt defined in the RFC
of FTP... 

Gabe Jackson
-- 
Edit bug report at http://bugs.php.net/?id=21748&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21748&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21748&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21748&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21748&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21748&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21748&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21748&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21748&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21748&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21748&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21748&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21748&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21748&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21748&r=gnused

Reply via email to