Skip to content

Commit 3525895

Browse files
henderkesiluuu1994
authored andcommitted
Fix ZEND_API mismatch on zend_ce_closure forward decl for Windows+Clang
Closes phpGH-21547
1 parent 72904a4 commit 3525895

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ PHP NEWS
55
- Core:
66
. Fixed bug GH-19983 (GC assertion failure with fibers, generators and
77
destructors). (iliaal)
8+
. Fixed ZEND_API mismatch on zend_ce_closure forward decl for Windows+Clang.
9+
(henderkes)
810

911
- SPL:
1012
. Fixed bug GH-21499 (RecursiveArrayIterator getChildren UAF after parent

Zend/zend_execute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ static zend_always_inline void zend_cast_zval_to_object(zval *result, zval *expr
248248
}
249249

250250
static zend_always_inline void zend_cast_zval_to_array(zval *result, zval *expr, uint8_t op1_type) {
251-
extern zend_class_entry *zend_ce_closure;
251+
extern ZEND_API zend_class_entry *zend_ce_closure;
252252
if (op1_type == IS_CONST || Z_TYPE_P(expr) != IS_OBJECT || Z_OBJCE_P(expr) == zend_ce_closure) {
253253
if (Z_TYPE_P(expr) != IS_NULL) {
254254
if (UNEXPECTED(Z_TYPE_P(expr) == IS_DOUBLE && zend_isnan(Z_DVAL_P(expr)))) {

0 commit comments

Comments
 (0)