From 72c8da0695cf8282458eec08a50bf170124d05ad Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 23 Feb 2007 16:21:31 +0000 Subject: [PATCH] fix #40606 (umask is not being restored when request is finished) --- ext/standard/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/file.c b/ext/standard/file.c index b4471d2d79..664e4da72d 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1581,7 +1581,7 @@ PHP_FUNCTION(umask) oldumask = umask(077); - if (BG(umask) != -1) { + if (BG(umask) == -1) { BG(umask) = oldumask; } -- 2.40.0