diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-06-10 13:59:03 +0200 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-06-10 16:57:35 +0200 |
commit | 95967c2077762985235e47db1fe9949bed5cbe8f (patch) | |
tree | d18f44b10a5c6ae9c4444c192cac7277a2003e6a /sysutils/php83-posix | |
parent | devel/py-python-gitlab: Update to 3.15.0 (diff) |
*/*php83*: Sunrise
Please DO NOT use this version in production, it is an early test
version.
For upgrade notes please visit:
https://github.com/php/php-src/blob/php-8.3.0alpha1/UPGRADING
Changelog: https://github.com/php/php-src/blob/php-8.3.0alpha1/NEWS
Sponsored by: Bounce Experts
Diffstat (limited to 'sysutils/php83-posix')
-rw-r--r-- | sysutils/php83-posix/Makefile | 7 | ||||
-rw-r--r-- | sysutils/php83-posix/files/patch-posix.c | 38 |
2 files changed, 45 insertions, 0 deletions
diff --git a/sysutils/php83-posix/Makefile b/sysutils/php83-posix/Makefile new file mode 100644 index 000000000000..59d39c1be278 --- /dev/null +++ b/sysutils/php83-posix/Makefile @@ -0,0 +1,7 @@ +CATEGORIES= sysutils + +MASTERDIR= ${.CURDIR}/../../lang/php83 + +PKGNAMESUFFIX= -posix + +.include "${MASTERDIR}/Makefile" diff --git a/sysutils/php83-posix/files/patch-posix.c b/sysutils/php83-posix/files/patch-posix.c new file mode 100644 index 000000000000..bf034ba887b4 --- /dev/null +++ b/sysutils/php83-posix/files/patch-posix.c @@ -0,0 +1,38 @@ +--- posix.c.orig 2023-06-06 15:54:29 UTC ++++ posix.c +@@ -779,7 +779,7 @@ PHP_FUNCTION(posix_getgrnam) + #if defined(ZTS) && defined(HAVE_GETGRNAM_R) && defined(_SC_GETGR_R_SIZE_MAX) + buflen = sysconf(_SC_GETGR_R_SIZE_MAX); + if (buflen < 1) { +- RETURN_FALSE; ++ buflen = 1024; + } + buf = emalloc(buflen); + try_again: +@@ -835,7 +835,7 @@ PHP_FUNCTION(posix_getgrgid) + + grbuflen = sysconf(_SC_GETGR_R_SIZE_MAX); + if (grbuflen < 1) { +- RETURN_FALSE; ++ grbuflen = 1024; + } + + grbuf = emalloc(grbuflen); +@@ -909,7 +909,7 @@ PHP_FUNCTION(posix_getpwnam) + #if defined(ZTS) && defined(_SC_GETPW_R_SIZE_MAX) && defined(HAVE_GETPWNAM_R) + buflen = sysconf(_SC_GETPW_R_SIZE_MAX); + if (buflen < 1) { +- RETURN_FALSE; ++ buflen = 1024; + } + buf = emalloc(buflen); + pw = &pwbuf; +@@ -964,7 +964,7 @@ PHP_FUNCTION(posix_getpwuid) + #if defined(ZTS) && defined(_SC_GETPW_R_SIZE_MAX) && defined(HAVE_GETPWUID_R) + pwbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); + if (pwbuflen < 1) { +- RETURN_FALSE; ++ pwbuflen = 1024; + } + pwbuf = emalloc(pwbuflen); + |