diff options
author | Andi Gutmans <andi@php.net> | 2000-03-30 22:56:34 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-03-30 22:56:34 +0000 |
commit | 9c3d6304dd7fe870278a7ad8688e40a9645f609c (patch) | |
tree | c1ac0b30f40abbb832d9ae2eadc492079a7f8d7e /ext/ftp | |
parent | 9df7df3293302198a29b1657682dba49ce02aa6b (diff) | |
download | php-git-9c3d6304dd7fe870278a7ad8688e40a9645f609c.tar.gz |
- Hopefully got most of them. We also need a chdir_file function like
for Apache.
Diffstat (limited to 'ext/ftp')
-rw-r--r-- | ext/ftp/php_ftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |