From e3f239c6ceaa5a12ae1ff90a2da38e992d0979ad Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 24 Sep 2009 18:59:28 +0000 Subject: [PATCH] Make tempnam() return FALSE on error as documented --- ext/standard/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/standard/file.c b/ext/standard/file.c index 00c9861f28..90a0b2c8e4 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -977,6 +977,7 @@ PHP_FUNCTION(tempnam) efree(opened_path); } efree(p); + RETURN_FALSE; } /* }}} */ -- 2.50.1