diff options
Diffstat (limited to 'ext/fileinfo/fileinfo.c')
-rw-r--r-- | ext/fileinfo/fileinfo.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/fileinfo/fileinfo.c b/ext/fileinfo/fileinfo.c index 5d36a0e949..99c3945204 100644 --- a/ext/fileinfo/fileinfo.c +++ b/ext/fileinfo/fileinfo.c @@ -315,11 +315,7 @@ PHP_FUNCTION(finfo_open) file = NULL; } else if (file && *file) { /* user specified file, perform open_basedir checks */ -#if PHP_API_VERSION < 20100412 - if ((PG(safe_mode) && (!php_checkuid(file, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(file TSRMLS_CC)) { -#else if (php_check_open_basedir(file TSRMLS_CC)) { -#endif FILEINFO_DESTROY_OBJECT(object); RETURN_FALSE; } |