summaryrefslogtreecommitdiffstats
path: root/10756.patch
blob: b980bf7227d83a040e7c69270972a0ea00d93323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From 9f0022064677d180742642f264096a46c09269d3 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Fri, 3 Mar 2023 11:12:13 +0100
Subject: [PATCH] remove assert raising strange behavior with GCC 10

---
 ext/reflection/php_reflection.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 9a9685e7292e..42fec082c173 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -1748,7 +1748,6 @@ ZEND_METHOD(ReflectionFunctionAbstract, getClosureUsedVariables)
 
 		zend_op *opline = ops->opcodes + ops->num_args;
 		if (ops->fn_flags & ZEND_ACC_VARIADIC) {
-			ZEND_ASSERT(opline->opcode == ZEND_RECV_VARIADIC);
 			opline++;
 		}