mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 15:51:51 -04:00
- 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
26 lines
641 B
C
26 lines
641 B
C
--- ext/standard/filestat.c.orig 2024-01-17 22:13:37 UTC
|
|
+++ ext/standard/filestat.c
|
|
@@ -281,7 +281,11 @@ PHPAPI zend_result php_get_gid_by_name(const char *nam
|
|
char *grbuf;
|
|
|
|
if (grbuflen < 1) {
|
|
+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE)
|
|
+ grbuflen = sysconf(_SC_PAGESIZE);
|
|
+#else
|
|
return FAILURE;
|
|
+#endif
|
|
}
|
|
|
|
grbuf = emalloc(grbuflen);
|
|
@@ -407,7 +411,11 @@ PHPAPI zend_result php_get_uid_by_name(const char *nam
|
|
char *pwbuf;
|
|
|
|
if (pwbuflen < 1) {
|
|
+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE)
|
|
+ pwbuflen = sysconf(_SC_PAGESIZE);
|
|
+#else
|
|
return FAILURE;
|
|
+#endif
|
|
}
|
|
|
|
pwbuf = emalloc(pwbuflen);
|