]> granicus.if.org Git - php/commitdiff
Make tempnam() return FALSE on error as documented
authorIlia Alshanetsky <iliaa@php.net>
Thu, 24 Sep 2009 18:59:28 +0000 (18:59 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 24 Sep 2009 18:59:28 +0000 (18:59 +0000)
ext/standard/file.c

index 00c9861f2866c0a60d9cc5723bdd9305e66339fb..90a0b2c8e42a5d226688874e7ac2d6c96e28e9ea 100644 (file)
@@ -977,6 +977,7 @@ PHP_FUNCTION(tempnam)
                efree(opened_path);
        }
        efree(p);
+       RETURN_FALSE;
 }
 /* }}} */