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/standard/filestat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/standard/filestat.c') 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); -- cgit v1.2.1