From: Pierre Joye Date: Fri, 9 Oct 2009 14:37:45 +0000 (+0000) Subject: - Merge: Make tempnam() return FALSE on error as documented X-Git-Tag: php-5.3.1RC2~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78f24c74c0d0456a924103b4618dc6d5bc5a6fc2;p=php - Merge: Make tempnam() return FALSE on error as documented --- diff --git a/ext/standard/file.c b/ext/standard/file.c index 45fb273043..387bbc3220 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -858,6 +858,8 @@ PHP_FUNCTION(tempnam) if (p_len > 64) { p[63] = '\0'; } + + RETVAL_FALSE; if ((fd = php_open_temporary_fd(dir, p, &opened_path TSRMLS_CC)) >= 0) { close(fd);