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/standard/filestat.c | |
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/standard/filestat.c')
-rw-r--r-- | ext/standard/filestat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 1542f27501..61959f32d2 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -387,7 +387,7 @@ PHP_FUNCTION(touch) /* create the file if it doesn't exist already */ ret = stat((*filename)->value.str.val, &sb); if (ret == -1) { - file = fopen((*filename)->value.str.val, "w"); + file = PHP_FOPEN((*filename)->value.str.val, "w"); if (file == NULL) { php_error(E_WARNING, "unable to create file %s because %s", (*filename)->value.str.val, strerror(errno)); if (newtime) efree(newtime); |