HHVM 3.29 发布了,这个版本的主要变更集中在类型检查器上(typechecker),包括针对已经在运行时失败的情况引发类型错误,或者禁止使类型系统不健全的罕见情况。 新特性
[hackfmt] added support for // hackfmt-ignore comments, to turn off formatting for a node [typechecker] null checks on Shapes::idx() results now refine the type of the shape add support for typed user attributes
其他值得关注的更新
[typechecker] correct handling of is expressions in pipe expressions [typechecker] fix handling of as expressions in list assignments, e.g. list($a, $b) = $mixed as (int, int); [typechecker+HackC] support unambiguous as expressions in foreach , e.g. foreach(f($x as nonnull) as $y) [runtime] async curl functions are now natively async again [runtime] handle EINTR (e.g. Xenon) while invoking HackC [runtime] <<__LateInit>> now works correctly for private properties on abstract classes
此外,还有大量带来破坏兼容性的变化,详情请 点此查看。 源码下载:https://github.com/facebook/hhvm/releases/tag/HHVM-3.29.0 HipHop VM(HHVM) 是 Facebook 推出的用来执行 PHP 代码的虚拟机,它是一个 PHP 的 JIT(Just-In- Time) 编译器,同时具有产生快速代码和即时编译的优点。 |