File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1413,20 +1413,20 @@ PHP_FUNCTION(umask)
1413
1413
{
1414
1414
long arg1 = 0 ;
1415
1415
int oldumask ;
1416
- int arg_count = ZEND_NUM_ARGS ();
1416
+
1417
+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "|l" , & arg1 ) == FAILURE ) {
1418
+ RETURN_FALSE ;
1419
+ }
1417
1420
1418
1421
oldumask = umask (077 );
1419
1422
1420
1423
if (BG (umask ) == -1 ) {
1421
1424
BG (umask ) = oldumask ;
1422
1425
}
1423
1426
1424
- if (arg_count == 0 ) {
1427
+ if (ZEND_NUM_ARGS () == 0 ) {
1425
1428
umask (oldumask );
1426
1429
} else {
1427
- if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "|l" , & arg1 ) == FAILURE ) {
1428
- RETURN_FALSE ;
1429
- }
1430
1430
umask (arg1 );
1431
1431
}
1432
1432
@@ -2491,6 +2491,9 @@ PHP_FUNCTION(fnmatch)
2491
2491
Returns directory path used for temporary files */
2492
2492
PHP_FUNCTION (sys_get_temp_dir )
2493
2493
{
2494
+ if (zend_parse_parameters_none () == FAILURE ) {
2495
+ return ;
2496
+ }
2494
2497
RETURN_STRING ((char * )php_get_temporary_directory (), 1 );
2495
2498
}
2496
2499
/* }}} */
You can’t perform that action at this time.
0 commit comments