@@ -458,7 +458,7 @@ PHP_FUNCTION(posix_ttyname)
458
458
RETURN_FALSE ;
459
459
}
460
460
} else {
461
- if (!zend_parse_arg_long (z_fd , & fd , /* is_null */ false , /* check_null */ false, /* arg_num */ 1 )) {
461
+ if (!zend_parse_arg_long (z_fd , & fd , /* is_null */ NULL , /* check_null */ false, /* arg_num */ 1 )) {
462
462
php_error_docref (NULL , E_WARNING , "Argument #1 ($file_descriptor) must be of type int|resource, %s given" ,
463
463
zend_zval_value_name (z_fd ));
464
464
fd = zval_get_long (z_fd );
@@ -508,7 +508,7 @@ PHP_FUNCTION(posix_isatty)
508
508
RETURN_FALSE ;
509
509
}
510
510
} else {
511
- if (!zend_parse_arg_long (z_fd , & fd , /* is_null */ false , /* check_null */ false, /* arg_num */ 1 )) {
511
+ if (!zend_parse_arg_long (z_fd , & fd , /* is_null */ NULL , /* check_null */ false, /* arg_num */ 1 )) {
512
512
php_error_docref (NULL , E_WARNING , "Argument #1 ($file_descriptor) must be of type int|resource, %s given" ,
513
513
zend_zval_value_name (z_fd ));
514
514
fd = zval_get_long (z_fd );
@@ -1242,7 +1242,7 @@ PHP_FUNCTION(posix_fpathconf)
1242
1242
RETURN_FALSE ;
1243
1243
}
1244
1244
} else {
1245
- if (!zend_parse_arg_long (z_fd , & fd , /* is_null */ false , /* check_null */ false, /* arg_num */ 1 )) {
1245
+ if (!zend_parse_arg_long (z_fd , & fd , /* is_null */ NULL , /* check_null */ false, /* arg_num */ 1 )) {
1246
1246
zend_argument_type_error (1 , "must be of type int|resource, %s given" ,
1247
1247
zend_zval_value_name (z_fd ));
1248
1248
RETURN_THROWS ();
0 commit comments