We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69d49e4 commit 84af629Copy full SHA for 84af629
ext/posix/posix.c
@@ -1204,11 +1204,11 @@ PHP_FUNCTION(posix_pathconf)
1204
size_t path_len;
1205
1206
ZEND_PARSE_PARAMETERS_START(2, 2)
1207
- Z_PARAM_STRING(path, path_len)
+ Z_PARAM_PATH(path, path_len)
1208
Z_PARAM_LONG(name);
1209
ZEND_PARSE_PARAMETERS_END();
1210
1211
- if (path_len == 0) {
+ if (path_len == 0 || php_check_open_basedir(path)) {
1212
RETURN_FALSE;
1213
}
1214
0 commit comments