--- main/php_open_temporary_file.c.orig	Sun Feb  7 21:15:58 2010
+++ main/php_open_temporary_file.c	Wed Jan  5 10:02:06 2011
@@ -138,7 +138,7 @@ static int php_do_open_temporary_file(const char *path
 		trailing_slash = "/";
 	}
 
-	if (spprintf(&opened_path, 0, "%s%s%sXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPATHLEN) {
+	if (spprintf(&opened_path, 0, "%s%s%sXXXXXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPATHLEN) {
 		efree(opened_path);
 		free(new_state.cwd);
 		return -1;
