We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffac60e commit 5b9659cCopy full SHA for 5b9659c
ext/standard/file.c
@@ -1414,15 +1414,15 @@ PHP_FUNCTION(umask)
1414
long arg1 = 0;
1415
int oldumask;
1416
1417
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &arg1) == FAILURE) {
1418
- RETURN_FALSE;
1419
- }
1420
-
1421
oldumask = umask(077);
1422
1423
if (BG(umask) == -1) {
1424
BG(umask) = oldumask;
1425
}
+
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &arg1) == FAILURE) {
+ RETURN_FALSE;
+ }
1426
1427
if (ZEND_NUM_ARGS() == 0) {
1428
umask(oldumask);
0 commit comments