En

HHVM官网普通更新(2020-06-24)

来源:HHVM官网 发布日期:2020-06-24 阅读次数:32 评论:0

基本信息

发布日期:2020-06-24(官方当地时间)

更新类型:普通更新

更新版本:4.63

感知时间:2020-06-25 06:30:54

风险等级:未知

情报贡献:TSRC

更新标题

普通更新

更新详情

We have decided to skip this week’s regular release, HHVM 4.63.There have been some bugs that prevented us from publishing the release earlier
this week. Instead of shipping the release only a few days before the next one,
we decided to skip it.Support for HHVM 4.57 will be extended until the release of HHVM 4.64, scheduled
for next week.Breaking ChangesWe expect next week’s HHVM 4.64 to contain some significant changes affecting
legacy (PHP-style) arrays. We expect array(...) literals to be completely removed in the next release.
All code will need to be migrated to varray[...] and darray[...], or
preferably vec[...] and dict[...] (if it can be done safely).

Automated migration is available in HHAST
v4.33.6 or newer: hhast-migrate --php-arrays


The INI flag hhvm.hack_arr_compat_specialization will be removed and its
behavior will be enabled by default. We highly recommend enabling this flag in
your current HHVM release before upgrading to HHVM 4.64.
This change disables the implicit inter-operability between varrays and
darrays. Instead, varray and darray will be treated
as types in their own right. Specifically:

Using a varray where a darray is expected (at parameter and return value
typehints) will throw, and vice versa. The same goes for property typehints,
if they are checked at runtime.
varrays will now maintain a “vec-like” layout, with integer keys from 0 to
(size - 1). Attempting to set a string key in a varray will throw, as will
attempting to unset any element other than the last one.
Tuples and shapes are internally represented as varrays and darrays,
respectively. As a
result, darray is tuple(...) will return false and darray as tuple(...)
will throw. The same goes for varray is shape(...) and
varray as shape(...).
Comparing a varray and a darray using == or === will always return
false.
Attempting to compare varrays to darrays relationally with = will result in an exception.

软件描述

HHVM (HipHop Virtual Machine)会将PHP代码转换成高级别的字节码(通常称为中间语言)。然后在运行时通过即时(JIT)编译器将这些字节码转换为x64的机器码

CVE编号

TSRC分析

暂无

业界资讯

暂无

评论

提交评论 您输入的评论有误,请重新输入