summaryrefslogtreecommitdiffhomepage
path: root/php_imlib.c
diff options
context:
space:
mode:
authorPiotr Pawłow <pp@siedziba.pl>2016-09-14 17:39:36 +0200
committerPiotr Pawłow <pp@siedziba.pl>2016-09-14 17:39:36 +0200
commit928a86fc56d08f71fdc1cf3acd19a99089790b1b (patch)
tree1e9650d5383bc1817769a66819f346fb02058558 /php_imlib.c
parent2bbb54311cf7023e53828e0a16d4acfbbd5dbe35 (diff)
Remove ENFORCE_SAFE_MODE.
Diffstat (limited to 'php_imlib.c')
-rw-r--r--php_imlib.c8
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);