Also  from the man page "Never use this function.  Use mkstemp(3) or tmpfile(3) instead." Since the PHP function is basically a straight call to the libc function.