[php] mkdir chmod problem

i use this mkdir function code

$mkdir = mkdir ("/home/vhosts/mosquitocommunicatie.nl/httpdocs/klanten/" . $map, 0777);

but the problem is that instead of the given chmod of 0777 it gets the chmod of 0755

does someone know how thats possible??

gr Jos