Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2024 19:40:22 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 53cd0b886f04 - main - lang/php82: Fix build
Message-ID:  <202401181940.40IJeMSG009658@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=53cd0b886f04eaa4155190efc04dd651befb233e

commit 53cd0b886f04eaa4155190efc04dd651befb233e
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-18 19:39:55 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-18 19:40:17 +0000

    lang/php82: Fix build
    
    PR:             fluffy
---
 lang/php82/files/patch-main_fopen__wrappers.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lang/php82/files/patch-main_fopen__wrappers.c b/lang/php82/files/patch-main_fopen__wrappers.c
index c07c9a867270..05063cbab4b4 100644
--- a/lang/php82/files/patch-main_fopen__wrappers.c
+++ b/lang/php82/files/patch-main_fopen__wrappers.c
@@ -1,11 +1,11 @@
---- main/fopen_wrappers.c.orig	2024-01-17 22:32:57 UTC
+--- main/fopen_wrappers.c.orig	2024-01-16 12:19:32 UTC
 +++ main/fopen_wrappers.c
 @@ -369,7 +369,11 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *
  			char *pwbuf;
  
  			if (pwbuflen < 1) {
 +#if defined(__FreeBSD__) && defined(_SC_PAGESIZE)
-+				buflen = sysconf(_SC_PAGESIZE);
++				pwbuflen = sysconf(_SC_PAGESIZE);
 +#else
  				return FAILURE;
 +#endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401181940.40IJeMSG009658>