1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00

databases/php-tarantool: Fix build with PHP 8.5 Beta 2+

PHP 8.5 Beta 2 changed the #define HASH_KEY_NON_EXISTENT to an enum in [1]. It
breaks the #ifndef check in php-tarantool. Since HASH_KEY_NON_EXISTENT exists in
all supported PHP versions, it is safe to simply remove the check.

Reference:	https://github.com/php/php-src/commit/bf64dfcd99f2f14753d8301dd3d4a85cdd53afc7 [1]
		https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/p118fb2971704_s4ab64e34911/logs/php85-tarantool-0.4.0.log
		https://pkg-status.freebsd.org/beefy17/data/15stable-amd64-default/56c5cbbc8d99/logs/php85-tarantool-0.4.0.log
This commit is contained in:
Po-Chuan Hsieh
2025-09-30 18:43:00 +08:00
parent 28f6a15a55
commit ec3e80cc5a
+13
View File
@@ -0,0 +1,13 @@
--- src/tarantool_msgpack.c.orig 2024-07-04 16:18:34 UTC
+++ src/tarantool_msgpack.c
@@ -5,10 +5,6 @@
#include "third_party/msgpuck.h"
-#ifndef HASH_KEY_NON_EXISTENT
-#define HASH_KEY_NON_EXISTENT HASH_KEY_NON_EXISTANT
-#endif /* HASH_KEY_NON_EXISTENT */
-
/* UTILITES */
int smart_string_ensure(smart_string *str, size_t len) {