follow-up on GH-10238. (#10243)

fixes based on feedback.
This commit is contained in:
David CARLIER 2023-01-06 18:03:59 +00:00 committed by GitHub
parent 69d49e4dd7
commit 84af629e7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1204,11 +1204,11 @@ PHP_FUNCTION(posix_pathconf)
size_t path_len;
ZEND_PARSE_PARAMETERS_START(2, 2)
Z_PARAM_STRING(path, path_len)
Z_PARAM_PATH(path, path_len)
Z_PARAM_LONG(name);
ZEND_PARSE_PARAMETERS_END();
if (path_len == 0) {
if (path_len == 0 || php_check_open_basedir(path)) {
RETURN_FALSE;
}