来源:HHVM官网
发布日期:2019-12-02
阅读次数:1124
评论:0
更新详情
HHVM 4.34 is released! This release marks the end of support for 4.28;
4.29–4.33 remain supported, as does the 4.8 LTS release.Highlights Added hh_client --concatenate-all path/ [morepaths/ ...], which creates a
single-file version of a Hack project. This respects required inclusion order
(e.g. parent classes before child classes), and resolves syntax issues such as
namespace declarations and potentially conflicting use statements. Example
usage:
hh_client --concatenate-all src/ for a library
hh_client --concatenate-all src/ vendor/ bin/foo.hack for an executable
Breaking Changes It is now always a type error to use self::abstractStaticMethod() to call an
abstract static method inside a trait. Previously, this was only a type
error if any classes used the trait without implementing the respective
method. The new behavior is consistent with abstract classes, where calling
self::abstractStaticMethod() was already an error. Use
static::abstractStaticMethod() instead (note that this may change the
behavior in some cases, but most likely the new behavior better captures the
original intent of the code).
Type errors about incorrectly overridden type constants are now reported in
the child class that overrides the constant, not in the parent class that
declares it. This may require some HH_FIXMEs to be moved from a parent class
to its child classes.
软件描述
HHVM (HipHop Virtual Machine)会将PHP代码转换成高级别的字节码(通常称为中间语言)。然后在运行时通过即时(JIT)编译器将这些字节码转换为x64的机器码
评论