diff options
| -rw-r--r-- | php_imlib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/php_imlib.c b/php_imlib.c index e9e07e9..71b9666 100644 --- a/php_imlib.c +++ b/php_imlib.c @@ -1926,7 +1926,7 @@ PHP_FUNCTION(imlib_load_image) ZVAL_LONG(*err,0); } - f = php_stream_open_wrapper_as_file(img, "rb", IGNORE_PATH | ENFORCE_SAFE_MODE | REPORT_ERRORS, &filename); + f = php_stream_open_wrapper_as_file(img, "rb", IGNORE_PATH | REPORT_ERRORS, &filename); if (f == NULL) RETURN_FALSE; im = imlib_load_image_with_error_return(filename, &im_err); @@ -2085,7 +2085,7 @@ PHP_FUNCTION(imlib_save_image) imlib_image_attach_data_value("quality",NULL,q,NULL); } - f = php_stream_open_wrapper_as_file(name, "wb", IGNORE_PATH | ENFORCE_SAFE_MODE | REPORT_ERRORS, &filename); + f = php_stream_open_wrapper_as_file(name, "wb", IGNORE_PATH | REPORT_ERRORS, &filename); if (f == NULL) RETURN_FALSE; imlib_save_image_with_error_return(filename, &im_err); @@ -2636,7 +2636,7 @@ PHP_FUNCTION(imlib_psloadfont) if (zend_parse_parameters(1 TSRMLS_CC, "s", &file, &file_len) == FAILURE) return; - f = php_stream_open_wrapper_as_file(file, "rb", IGNORE_PATH | ENFORCE_SAFE_MODE | REPORT_ERRORS, &filename); + f = php_stream_open_wrapper_as_file(file, "rb", IGNORE_PATH | REPORT_ERRORS, &filename); if (f == NULL) RETURN_FALSE; f_ind = T1_AddFont(filename); @@ -2714,7 +2714,7 @@ PHP_FUNCTION(imlib_psencodefont) ZEND_FETCH_RESOURCE(f_ind, int *, &fnt, -1, "Type 1 font", le_ps_font); - f = php_stream_open_wrapper_as_file(enc, "rb", IGNORE_PATH | ENFORCE_SAFE_MODE | REPORT_ERRORS, &filename); + f = php_stream_open_wrapper_as_file(enc, "rb", IGNORE_PATH | REPORT_ERRORS, &filename); if (f == NULL) RETURN_FALSE; enc_vector = T1_LoadEncoding(filename); |
