iliaa                                    Thu, 24 Sep 2009 18:59:28 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=288679

Log:
Make tempnam() return FALSE on error as documented

Changed paths:
    U   php/php-src/branches/PHP_5_2/ext/standard/file.c
    U   php/php-src/branches/PHP_5_3/ext/standard/file.c
    U   php/php-src/trunk/ext/standard/file.c

Modified: php/php-src/branches/PHP_5_2/ext/standard/file.c
===================================================================
--- php/php-src/branches/PHP_5_2/ext/standard/file.c    2009-09-24 18:45:09 UTC 
(rev 288678)
+++ php/php-src/branches/PHP_5_2/ext/standard/file.c    2009-09-24 18:59:28 UTC 
(rev 288679)
@@ -1018,6 +1018,7 @@
        }

        efree(p);
+       RETURN_FALSE;
 }
 /* }}} */


Modified: php/php-src/branches/PHP_5_3/ext/standard/file.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/standard/file.c    2009-09-24 18:45:09 UTC 
(rev 288678)
+++ php/php-src/branches/PHP_5_3/ext/standard/file.c    2009-09-24 18:59:28 UTC 
(rev 288679)
@@ -860,6 +860,7 @@
                RETVAL_STRING(opened_path, 0);
        }
        efree(p);
+       RETURN_FALSE;
 }
 /* }}} */


Modified: php/php-src/trunk/ext/standard/file.c
===================================================================
--- php/php-src/trunk/ext/standard/file.c       2009-09-24 18:45:09 UTC (rev 
288678)
+++ php/php-src/trunk/ext/standard/file.c       2009-09-24 18:59:28 UTC (rev 
288679)
@@ -977,6 +977,7 @@
                efree(opened_path);
        }
        efree(p);
+       RETURN_FALSE;
 }
 /* }}} */


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to