diff options
| author | Andi Gutmans <andi@php.net> | 2006-02-19 04:29:42 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2006-02-19 04:29:42 +0000 |
| commit | 1efe984d08ccab1d06f062ca157e3bdb2cb7cd57 (patch) | |
| tree | f12f77325e51b257cb0a8f039ed7568e4ed0fb34 /ext/exif | |
| parent | 8f126f33ac87e3bf1432b2a94f27e5f8f47cde9f (diff) | |
| download | php-git-1efe984d08ccab1d06f062ca157e3bdb2cb7cd57.tar.gz | |
- Get rid of using ENFORCE_SAFE_MODE.
Diffstat (limited to 'ext/exif')
| -rw-r--r-- | ext/exif/exif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 7c46f364a4..78b9108bcd 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -3729,7 +3729,7 @@ static int exif_read_file(image_info_type *ImageInfo, char *FileName, int read_t ImageInfo->motorola_intel = -1; /* flag as unknown */ - ImageInfo->infile = php_stream_open_wrapper(FileName, "rb", STREAM_MUST_SEEK|IGNORE_PATH|ENFORCE_SAFE_MODE, NULL); + ImageInfo->infile = php_stream_open_wrapper(FileName, "rb", STREAM_MUST_SEEK|IGNORE_PATH, NULL); if (!ImageInfo->infile) { exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_WARNING, "Unable to open file"); return FALSE; @@ -4047,7 +4047,7 @@ PHP_FUNCTION(exif_imagetype) WRONG_PARAM_COUNT; convert_to_string_ex(arg1); - stream = php_stream_open_wrapper(Z_STRVAL_PP(arg1), "rb", IGNORE_PATH|ENFORCE_SAFE_MODE|REPORT_ERRORS, NULL); + stream = php_stream_open_wrapper(Z_STRVAL_PP(arg1), "rb", IGNORE_PATH|REPORT_ERRORS, NULL); if (stream == NULL) { RETURN_FALSE; |
