Skip to content

Commit 84af629

Browse files
authoredJan 6, 2023
follow-up on GH-10238. (#10243)
fixes based on feedback.
1 parent 69d49e4 commit 84af629

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎ext/posix/posix.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1204,11 +1204,11 @@ PHP_FUNCTION(posix_pathconf)
12041204
size_t path_len;
12051205

12061206
ZEND_PARSE_PARAMETERS_START(2, 2)
1207-
Z_PARAM_STRING(path, path_len)
1207+
Z_PARAM_PATH(path, path_len)
12081208
Z_PARAM_LONG(name);
12091209
ZEND_PARSE_PARAMETERS_END();
12101210

1211-
if (path_len == 0) {
1211+
if (path_len == 0 || php_check_open_basedir(path)) {
12121212
RETURN_FALSE;
12131213
}
12141214

0 commit comments

Comments
 (0)
Please sign in to comment.