summaryrefslogtreecommitdiffstats
path: root/42.patch
diff options
context:
space:
mode:
Diffstat (limited to '42.patch')
-rw-r--r--42.patch36
1 files changed, 35 insertions, 1 deletions
diff --git a/42.patch b/42.patch
index c9686bb..9d20a9a 100644
--- a/42.patch
+++ b/42.patch
@@ -1,7 +1,7 @@
From 23c34676e88ed6aef5fc6b6484a65abb554aa11a Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Tue, 25 Aug 2020 10:51:51 +0200
-Subject: [PATCH] adapt for PHP 8 and missing arginfo
+Subject: [PATCH 1/2] adapt for PHP 8 and missing arginfo
---
fann.c | 7 ++-----
@@ -71,3 +71,37 @@ index 3197a67..7008c04 100644
PHP_FANN_CONN_PROP_NAME(__name), (__value) TSRMLS_CC)
#define PHP_FANN_CONN_PROP_DECLARE(__type, __name) \
zend_declare_property_##__type(php_fann_FANNConnection_class, PHP_FANN_CONN_PROP_NAME(__name), \
+
+From f7bfc3d254d24f35462d03ccce19597bae593d38 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Wed, 2 Sep 2020 09:39:38 +0200
+Subject: [PATCH 2/2] fix for 8.0.0beta3
+
+---
+ fann.c | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/fann.c b/fann.c
+index a5c2e68..68dd96b 100644
+--- a/fann.c
++++ b/fann.c
+@@ -1618,7 +1618,8 @@ PHP_FUNCTION(fann_destroy)
+ return;
+ }
+
+- RETURN_BOOL(PHPC_RES_CLOSE(z_ann) == SUCCESS);
++ PHPC_RES_CLOSE(z_ann);
++ RETURN_TRUE;
+ }
+ /* }}} */
+
+@@ -2242,7 +2243,8 @@ PHP_FUNCTION(fann_destroy_train)
+ return;
+ }
+
+- RETURN_BOOL(PHPC_RES_CLOSE(z_train_data) == SUCCESS);
++ PHPC_RES_CLOSE(z_train_data);
++ RETURN_TRUE;
+ }
+ /* }}} */
+