diff options
Diffstat (limited to 'ext/pgsql/pgsql.c')
| -rw-r--r-- | ext/pgsql/pgsql.c | 10 | 
1 files changed, 1 insertions, 9 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 70e9d0bda2..064173f9df 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2879,7 +2879,7 @@ PHP_FUNCTION(pg_trace)  	ZEND_FETCH_RESOURCE2(pgsql, PGconn *, &pgsql_link, id, "PostgreSQL link", le_link, le_plink); -	stream = php_stream_open_wrapper(z_filename, mode, ENFORCE_SAFE_MODE|REPORT_ERRORS, NULL); +	stream = php_stream_open_wrapper(z_filename, mode, REPORT_ERRORS, NULL);  	if (!stream) {  		RETURN_FALSE; @@ -3338,10 +3338,6 @@ PHP_FUNCTION(pg_lo_import)  	else {  		WRONG_PARAM_COUNT;  	} - -	if (PG(safe_mode) &&(!php_checkuid(file_in, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { -		RETURN_FALSE; -	}  	if (php_check_open_basedir(file_in TSRMLS_CC)) {  		RETURN_FALSE; @@ -3475,10 +3471,6 @@ PHP_FUNCTION(pg_lo_export)  		php_error_docref(NULL TSRMLS_CC, E_WARNING, "Requires 2 or 3 arguments");  		RETURN_FALSE;  	} - -	if (PG(safe_mode) &&(!php_checkuid(file_out, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { -		RETURN_FALSE; -	}  	if (php_check_open_basedir(file_out TSRMLS_CC)) {  		RETURN_FALSE;  | 
