From abe5274ee790c6d225f9a71d24897edb0a157fea Mon Sep 17 00:00:00 2001 From: Dirk Froemberg Date: Mon, 13 May 2002 05:58:06 +0000 Subject: Fix mkdir() bug. PR: ports/37825 Submitted by: Jason Taylor --- www/mod_php5/Makefile | 2 +- www/mod_php5/files/patch-ext_standard_file.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 www/mod_php5/files/patch-ext_standard_file.c (limited to 'www/mod_php5') diff --git a/www/mod_php5/Makefile b/www/mod_php5/Makefile index bae9bf9669da..874a0cb40806 100644 --- a/www/mod_php5/Makefile +++ b/www/mod_php5/Makefile @@ -7,7 +7,7 @@ PORTNAME?= mod_php4 PORTVERSION= 4.2.0 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES?= www MASTER_SITES= http://us.php.net/${PHP_DISTDIR}/ \ http://php.he.net/${PHP_DISTDIR}/ \ diff --git a/www/mod_php5/files/patch-ext_standard_file.c b/www/mod_php5/files/patch-ext_standard_file.c new file mode 100644 index 000000000000..7077adc68f47 --- /dev/null +++ b/www/mod_php5/files/patch-ext_standard_file.c @@ -0,0 +1,20 @@ +--- ext/standard/file.c.orig Thu Feb 28 09:26:44 2002 ++++ ext/standard/file.c Tue May 7 13:57:19 2002 +@@ -1453,7 +1453,7 @@ + PHP_FUNCTION(mkdir) + { + int dir_len, ret; +- mode_t mode = 0777; ++ long mode = 0777; + char *dir; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &dir, &dir_len, &mode) == FAILURE) { +@@ -1468,7 +1468,7 @@ + RETURN_FALSE; + } + +- ret = VCWD_MKDIR(dir, mode); ++ ret = VCWD_MKDIR(dir, (mode_t)mode); + if (ret < 0) { + php_error(E_WARNING, "mkdir() failed (%s)", strerror(errno)); + RETURN_FALSE; -- cgit v1.2.3