summaryrefslogtreecommitdiff
path: root/ext/fileinfo/fileinfo.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-02-19 10:02:36 +0100
committerAnatol Belski <ab@php.net>2014-02-19 10:02:36 +0100
commit967a6771d35791a1a094efbf61ff89c58e874d7f (patch)
treee0c741a9d33ca2c7871855ec13fa831fb54346e4 /ext/fileinfo/fileinfo.c
parente95a2925fc3ae84e0ebf8fbee0764e99a1460ac6 (diff)
downloadphp-git-967a6771d35791a1a094efbf61ff89c58e874d7f.tar.gz
updated to libmagic-5.17
Diffstat (limited to 'ext/fileinfo/fileinfo.c')
-rw-r--r--ext/fileinfo/fileinfo.c4
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;
}