Skip to content

Commit 5b9659c

Browse files
author
felipe
committed
- Opss, restore old behavior
git-svn-id: http://svn.php.net/repository/php/php-src/trunk@312285 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent ffac60e commit 5b9659c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/standard/file.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -1414,15 +1414,15 @@ PHP_FUNCTION(umask)
14141414
long arg1 = 0;
14151415
int oldumask;
14161416

1417-
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &arg1) == FAILURE) {
1418-
RETURN_FALSE;
1419-
}
1420-
14211417
oldumask = umask(077);
14221418

14231419
if (BG(umask) == -1) {
14241420
BG(umask) = oldumask;
14251421
}
1422+
1423+
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &arg1) == FAILURE) {
1424+
RETURN_FALSE;
1425+
}
14261426

14271427
if (ZEND_NUM_ARGS() == 0) {
14281428
umask(oldumask);

0 commit comments

Comments
 (0)