com php-src: Another minor cleanup, drop ENFORCE_SAFE_MODE (all except pdo_pgsql have #if's for che cking already): ext/pdo_pgsql/pgsql_driver.c ma
in/php_streams.h

From: Date: Sun, 29 Mar 2015 07:34:05 +0000
Subject: com php-src: Another minor cleanup, drop ENFORCE_SAFE_MODE (all except pdo_pgsql have #if's for che cking already): ext/pdo_pgsql/pgsql_driver.c ma
in/php_streams.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85917@lists.php.net to get a copy of this message
Commit: a141ccb4ff7fb0666c7d7986c39feda9421291fe Author: Kalle Sommer Nielsen <kalle@php.net> Sun, 29 Mar 2015 09:34:05 +0200 Parents: 7845bcd82793bc6cda33d9e8a7d9f10a8866817d Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a141ccb4ff7fb0666c7d7986c39feda9421291fe Log: Another minor cleanup, drop ENFORCE_SAFE_MODE (all except pdo_pgsql have #if's for checking already) Changed paths: M ext/pdo_pgsql/pgsql_driver.c M main/php_streams.h Diff: diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c index ff1dbf2..20cd706 100644 --- a/ext/pdo_pgsql/pgsql_driver.c +++ b/ext/pdo_pgsql/pgsql_driver.c @@ -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(); diff --git a/main/php_streams.h b/main/php_streams.h index a21d442..4f3d860 100644 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -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. */

« previous php.cvs (#85917) next »