PHP mkdir 0777 falha chmod 0777 funciona

usando o PHP 5.2.14, é isso que acontece

[user@VE213 public_html]$ php -r "mkdir('directory', 0777);"
[user@VE213 public_html]$ ls -lt
drwxrwxr-x  2 rankranger rankranger 4096 Dec  8 17:28 directory

[user@VE213 public_html]$ php -r "chmod('directory', 0777);"
[user@VE213 public_html]$ ls -lt
drwxrwxrwx  2 rankranger rankranger 4096 Dec  8 17:28 directory

Não encontrou nenhum bug relacionado na lista de bugs do php, alguma ideia?

questionAnswers(3)

yourAnswerToTheQuestion