1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
From 95120639f0bfb6d4a6fe076ddf1b3016eda5e664 Mon Sep 17 00:00:00 2001
From: Joe Watkins <krakjoe@php.net>
Date: Sun, 16 Jun 2019 08:34:10 +0200
Subject: [PATCH] fix 7.4 build
---
src/definition.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/definition.c b/src/definition.c
index 2655a7f..659e65b 100644
--- a/src/definition.c
+++ b/src/definition.c
@@ -751,7 +751,7 @@ PHP_METHOD(Definition, addTrait)
o->ce->ce_flags |= ZEND_ACC_IMPLEMENT_TRAITS;
- zend_do_link_class(o->ce, NULL);
+ zend_do_link_class(o->ce);
o->ce->num_traits = num_traits + 1;
o->ce->trait_names -= num_traits;
@@ -859,7 +859,7 @@ PHP_METHOD(Definition, addProperty)
php_componere_value_addref(value);
#if PHP_VERSION_ID >= 70400
- zend_do_link_class(o->ce, NULL);
+ zend_do_link_class(o->ce);
#endif
}
@@ -917,7 +917,7 @@ PHP_METHOD(Definition, addConstant)
php_componere_value_access(value), NULL);
#if PHP_VERSION_ID >= 70400
- zend_do_link_class(o->ce, NULL);
+ zend_do_link_class(o->ce);
#endif
RETURN_ZVAL(getThis(), 1, 0);
|