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
14 lines
365 B
C
14 lines
365 B
C
--- main/fopen_wrappers.c.orig 2024-01-17 22:12:12 UTC
|
|
+++ main/fopen_wrappers.c
|
|
@@ -381,7 +381,11 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *
|
|
char *pwbuf;
|
|
|
|
if (pwbuflen < 1) {
|
|
+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE)
|
|
+ pwbuflen = sysconf(_SC_PAGESIZE);
|
|
+#else
|
|
return FAILURE;
|
|
+#endif
|
|
}
|
|
|
|
pwbuf = emalloc(pwbuflen);
|