git: 3766d360ef69 - main - www/phalcon: Unbreak for php84
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 03 Aug 2024 14:41:26 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3766d360ef6929736ce3dac9c137555d5bfd35dd
commit 3766d360ef6929736ce3dac9c137555d5bfd35dd
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-08-03 14:35:17 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-08-03 14:40:52 +0000
www/phalcon: Unbreak for php84
Runtime might still be broken.
Approved by: portmgr (blanket)
---
www/phalcon/Makefile | 1 -
www/phalcon/files/patch-phalcon.zep.c | 15 +++++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/www/phalcon/Makefile b/www/phalcon/Makefile
index bfa162009eb8..31d529e36044 100644
--- a/www/phalcon/Makefile
+++ b/www/phalcon/Makefile
@@ -14,7 +14,6 @@ USES= localbase php:build,ext
USE_GITHUB= yes
GH_PROJECT= c${PORTNAME}
USE_PHP= mbstring pdo:build session:build
-IGNORE_WITH_PHP= 84
CONFIGURE_ARGS= --enable-phalcon
diff --git a/www/phalcon/files/patch-phalcon.zep.c b/www/phalcon/files/patch-phalcon.zep.c
new file mode 100644
index 000000000000..d0044ac20cef
--- /dev/null
+++ b/www/phalcon/files/patch-phalcon.zep.c
@@ -0,0 +1,15 @@
+--- phalcon.zep.c.orig 2024-08-03 14:25:29 UTC
++++ phalcon.zep.c
+@@ -62,8 +62,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY O
+ #include <ext/standard/info.h>
+ #include <ext/standard/file.h>
+ #include <ext/standard/php_filestat.h>
++#if PHP_VERSION_ID <= 80300
+ #include <ext/standard/php_rand.h>
+ #include <ext/standard/php_lcg.h>
++#else
++#include <ext/random/php_random.h>
++#endif
+ #include <ext/standard/php_math.h>
+ #include <ext/standard/php_array.h>
+ #include <ext/standard/php_var.h>