From 8d6e99731522a220c1d57b8c86f0862e14880079 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 19 Jun 2011 14:50:44 +0000 Subject: [PATCH] - Opss, restore old behavior --- ext/standard/file.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/standard/file.c b/ext/standard/file.c index 6e829e02cc..1f5b5e73a6 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1499,15 +1499,15 @@ PHP_FUNCTION(umask) long arg1 = 0; int oldumask; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &arg1) == FAILURE) { - RETURN_FALSE; - } - oldumask = umask(077); if (BG(umask) == -1) { BG(umask) = oldumask; } + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &arg1) == FAILURE) { + RETURN_FALSE; + } if (ZEND_NUM_ARGS() == 0) { umask(oldumask); -- 2.50.1