1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 21:22:13 +02:00

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...
This commit is contained in:
Nikita Popov
2021-03-04 16:15:05 +01:00
parent b853201a6d
commit 97de8cfc71

View File

@@ -704,6 +704,7 @@ static void zend_persist_op_array(zval *zv)
}
} else {
/* This can happen during preloading, if a dynamic function definition is declared. */
Z_PTR_P(zv) = old_op_array;
}
}