From 9c3d6304dd7fe870278a7ad8688e40a9645f609c Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Thu, 30 Mar 2000 22:56:34 +0000 Subject: - Hopefully got most of them. We also need a chdir_file function like for Apache. --- ext/ftp/php_ftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/ftp/php_ftp.c') diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index 70859376e3..d1e0d2e749 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -550,7 +550,7 @@ PHP_FUNCTION(ftp_get) RETURN_FALSE; } - if ((outfp = fopen(arg2->value.str.val, "w")) == NULL) { + if ((outfp = PHP_FOPEN(arg2->value.str.val, "w")) == NULL) { fclose(tmpfp); php_error(E_WARNING, "error opening %s", arg2->value.str.val); RETURN_FALSE; @@ -634,7 +634,7 @@ PHP_FUNCTION(ftp_put) convert_to_string(arg3); XTYPE(xtype, arg4); - if ((infp = fopen(arg3->value.str.val, "r")) == NULL) { + if ((infp = PHP_FOPEN(arg3->value.str.val, "r")) == NULL) { php_error(E_WARNING, "error opening %s", arg3->value.str.val); RETURN_FALSE; } -- cgit v1.2.1