com php-src: Bugfix #74598 ftp:// ignores context: NEWS ext/standard/ftp_fopen_wrapper.c

From: Date: Sun, 28 May 2017 04:12:49 +0000
Subject: com php-src: Bugfix #74598 ftp:// ignores context: NEWS ext/standard/ftp_fopen_wrapper.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-97907@lists.php.net to get a copy of this message
Commit: 05849a242a878d5513e3e3be78a0c89fb9fa342b Author: Sara Golemon <pollita@php.net> Sat, 27 May 2017 21:12:49 -0700 Parents: 60912e66c8c6089cced22b14eadfade11e89d70a Branches: PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=05849a242a878d5513e3e3be78a0c89fb9fa342b Log: Bugfix #74598 ftp:// ignores context Bugs: https://bugs.php.net/74598 Changed paths: M NEWS M ext/standard/ftp_fopen_wrapper.c Diff: diff --git a/NEWS b/NEWS index 419d8aa..c51b14e 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,9 @@ PHP NEWS . Fixed bug #74478 (null coalescing operator failing with SplFixedArray). (jhdxr) +- FTP: + . Fixed bug #74598 (ftp:// wrapper ignores context arg). (Sara) + 8 Jun 2017 PHP 7.0.20 - Core: diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c index edca53d..a294960 100644 --- a/ext/standard/ftp_fopen_wrapper.c +++ b/ext/standard/ftp_fopen_wrapper.c @@ -908,7 +908,7 @@ static int php_stream_ftp_unlink(php_stream_wrapper *wrapper, const char *url, i int result; char tmp_line[512]; - stream = php_ftp_fopen_connect(wrapper, url, "r", 0, NULL, NULL, NULL, &resource, NULL, NULL); + stream = php_ftp_fopen_connect(wrapper, url, "r", 0, NULL, context, NULL, &resource, NULL, NULL); if (!stream) { if (options & REPORT_ERRORS) { php_error_docref(NULL, E_WARNING, "Unable to connect to %s", url); @@ -979,7 +979,7 @@ static int php_stream_ftp_rename(php_stream_wrapper *wrapper, const char *url_fr goto rename_errexit; } - stream = php_ftp_fopen_connect(wrapper, url_from, "r", 0, NULL, NULL, NULL, NULL, NULL, NULL); + stream = php_ftp_fopen_connect(wrapper, url_from, "r", 0, NULL, context, NULL, NULL, NULL, NULL); if (!stream) { if (options & REPORT_ERRORS) { php_error_docref(NULL, E_WARNING, "Unable to connect to %s", resource_from->host); @@ -1037,7 +1037,7 @@ static int php_stream_ftp_mkdir(php_stream_wrapper *wrapper, const char *url, in int result, recursive = options & PHP_STREAM_MKDIR_RECURSIVE; char tmp_line[512]; - stream = php_ftp_fopen_connect(wrapper, url, "r", 0, NULL, NULL, NULL, &resource, NULL, NULL); + stream = php_ftp_fopen_connect(wrapper, url, "r", 0, NULL, context, NULL, &resource, NULL, NULL); if (!stream) { if (options & REPORT_ERRORS) { php_error_docref(NULL, E_WARNING, "Unable to connect to %s", url); @@ -1131,7 +1131,7 @@ static int php_stream_ftp_rmdir(php_stream_wrapper *wrapper, const char *url, in int result; char tmp_line[512]; - stream = php_ftp_fopen_connect(wrapper, url, "r", 0, NULL, NULL, NULL, &resource, NULL, NULL); + stream = php_ftp_fopen_connect(wrapper, url, "r", 0, NULL, context, NULL, &resource, NULL, NULL); if (!stream) { if (options & REPORT_ERRORS) { php_error_docref(NULL, E_WARNING, "Unable to connect to %s", url);

« previous php.cvs (#97907) next »