svn: /php/php-src/branches/PHP_5_3_1/ext/standard/ file.c
| From: | Pierre-Alain Joye | Date: | Fri, 09 Oct 2009 14:37:45 +0000 |
| Subject: | svn: /php/php-src/branches/PHP_5_3_1/ext/standard/ file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-60619@lists.php.net to get a copy of this message | ||
pajoye Fri, 09 Oct 2009 14:37:45 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=289422
Log:
- Merge: Make tempnam() return FALSE on error as documented
Changed paths:
U php/php-src/branches/PHP_5_3_1/ext/standard/file.c
Modified: php/php-src/branches/PHP_5_3_1/ext/standard/file.c
===================================================================
--- php/php-src/branches/PHP_5_3_1/ext/standard/file.c 2009-10-09 14:37:09 UTC (rev 289421)
+++ php/php-src/branches/PHP_5_3_1/ext/standard/file.c 2009-10-09 14:37:45 UTC (rev 289422)
@@ -858,6 +858,8 @@
if (p_len > 64) {
p[63] = '\0';
}
+
+ RETVAL_FALSE;
if ((fd = php_open_temporary_fd(dir, p, &opened_path TSRMLS_CC)) >= 0) {
close(fd);