ports/lang/php83/files/patch-main_main.c
Johan Hendriks f7c6b6335d
lang/php83: Update version 8.3.1=>8.3.2
- Add profile support in php-fpm rc script for running multiple php
  master process

Changelog: https://www.php.net/ChangeLog-8.php#8.3.2
2024-01-18 19:29:10 +01:00

14 lines
394 B
C

--- main/main.c.orig 2024-01-17 22:08:35 UTC
+++ main/main.c
@@ -1459,7 +1459,11 @@ PHPAPI char *php_get_current_user(void)
char *pwbuf;
if (pwbuflen < 1) {
+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE)
+ pwbuflen = sysconf(_SC_PAGESIZE);
+#else
return "";
+#endif
}
pwbuf = emalloc(pwbuflen);
if (getpwuid_r(pstat->st_uid, &_pw, pwbuf, pwbuflen, &retpwptr) != 0) {