mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-8.2'
* PHP-8.2: Fix context option check for "overwrite" in FTP
This commit is contained in:
commit
10f8809495
1 changed files with 1 additions and 1 deletions
|
@ -488,7 +488,7 @@ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, const char *pa
|
|||
} else if (read_write == 2) {
|
||||
/* when writing file (but not appending), it must NOT exist, unless a context option exists which allows it */
|
||||
if (context && (tmpzval = php_stream_context_get_option(context, "ftp", "overwrite")) != NULL) {
|
||||
allow_overwrite = Z_LVAL_P(tmpzval) ? 1 : 0;
|
||||
allow_overwrite = zend_is_true(tmpzval);
|
||||
}
|
||||
if (result <= 299 && result >= 200) {
|
||||
if (allow_overwrite) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue