mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
Fixed bug #37987 (invalid return of file_exists() in safe mode).
This commit is contained in:
parent
7af33194e5
commit
1b2cc459c6
1
NEWS
1
NEWS
@ -74,6 +74,7 @@ PHP NEWS
|
||||
|
||||
- Fixed memory leaks in openssl streams context options. (Pierre)
|
||||
- Fixed handling of extremely long paths inside tempnam() function. (Ilia)
|
||||
- Fixed bug #37987 (invalid return of file_exists() in safe mode). (Ilia)
|
||||
- Fixed bug #37931 (possible crash in OCI8 after database restart
|
||||
when using persistent connections). (Tony)
|
||||
- Fixed bug #37920 (compilation problems on z/OS). (Tony)
|
||||
|
@ -660,7 +660,7 @@ PHPAPI void php_stat(const char *filename, php_stat_len filename_length, int typ
|
||||
}
|
||||
|
||||
if ((wrapper = php_stream_locate_url_wrapper(filename, &local, 0 TSRMLS_CC)) == &php_plain_files_wrapper) {
|
||||
if (php_check_open_basedir(local TSRMLS_CC)) {
|
||||
if (php_check_open_basedir(local TSRMLS_CC) || (PG(safe_mode) && !php_checkuid_ex(filename, NULL, CHECKUID_ALLOW_FILE_NOT_EXISTS, CHECKUID_NO_ERRORS))) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user