Another minor cleanup, drop ENFORCE_SAFE_MODE (all except pdo_pgsql have #if's for checking already)

This commit is contained in:
Kalle Sommer Nielsen 2015-03-29 09:34:05 +02:00
parent 7845bcd827
commit a141ccb4ff
2 changed files with 2 additions and 3 deletions

View file

@ -669,7 +669,7 @@ static PHP_METHOD(PDO, pgsqlCopyFromFile)
PDO_CONSTRUCT_CHECK;
PDO_DBH_CLEAR_ERR();
stream = php_stream_open_wrapper_ex(filename, "rb", ENFORCE_SAFE_MODE, NULL, FG(default_context));
stream = php_stream_open_wrapper_ex(filename, "rb", 0, NULL, FG(default_context));
if (!stream) {
pdo_pgsql_error_msg(dbh, PGRES_FATAL_ERROR, "Unable to open the file");
PDO_HANDLE_DBH_ERR();
@ -771,7 +771,7 @@ static PHP_METHOD(PDO, pgsqlCopyToFile)
H = (pdo_pgsql_db_handle *)dbh->driver_data;
stream = php_stream_open_wrapper_ex(filename, "wb", ENFORCE_SAFE_MODE, NULL, FG(default_context));
stream = php_stream_open_wrapper_ex(filename, "wb", 0, NULL, FG(default_context));
if (!stream) {
pdo_pgsql_error_msg(dbh, PGRES_FATAL_ERROR, "Unable to open the file for writing");
PDO_HANDLE_DBH_ERR();

View file

@ -503,7 +503,6 @@ END_EXTERN_C()
#define USE_PATH 0x00000001
#define IGNORE_URL 0x00000002
#define REPORT_ERRORS 0x00000008
#define ENFORCE_SAFE_MODE 0 /* for BC only */
/* If you don't need to write to the stream, but really need to
* be able to seek, use this flag in your options. */