From fa795b05530c4ccd33ff63f23903bf4b458dc491 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Wed, 8 Apr 2015 14:32:31 +0800 Subject: [PATCH] Fixed bug #69325 (php_copy_file_ex does not pass the argument) --- NEWS | 2 ++ ext/standard/file.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 4da1522921..67c7d530ef 100644 --- a/NEWS +++ b/NEWS @@ -172,6 +172,8 @@ required_num_args). (Julien) - Standard: + . Fixed bug #69325 (php_copy_file_ex does not pass the argument). + (imbolk at gmail dot com) . Fixed bug #69299 (Regression in array_filter's $flag argument in PHP 7). (Laruence) . Removed call_user_method() and call_user_method_array() functions. (Kalle) diff --git a/ext/standard/file.c b/ext/standard/file.c index dae4235a99..f31407b757 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1665,7 +1665,7 @@ PHPAPI int php_copy_file(const char *src, const char *dest) */ PHPAPI int php_copy_file_ex(const char *src, const char *dest, int src_flg) { - return php_copy_file_ctx(src, dest, 0, NULL); + return php_copy_file_ctx(src, dest, src_flg, NULL); } /* }}} */ -- 2.40.0