Skip to content

Commit 97de8cf

Browse files
committed
Fix dynamic func def persist with preloading
If we find an existing serialization of the op_array, of course we also need to actually make use of it...
1 parent b853201 commit 97de8cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/opcache/zend_persist.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,7 @@ static void zend_persist_op_array(zval *zv)
704704
}
705705
} else {
706706
/* This can happen during preloading, if a dynamic function definition is declared. */
707+
Z_PTR_P(zv) = old_op_array;
707708
}
708709
}
709710

0 commit comments

Comments
 (0)