Talk:PHP 5.4
Add topicAppearance
Latest comment: 11 years ago by Krenair in topic HHVM compatibility?
HHVM compatibility?
[edit]which of these goodies have been implemented in hhvm so far? —The preceding unsigned comment was added by Brion VIBBER (talk • contribs) 15:37, 9 June 2013
- As far as I can tell, array dereferencing and short array syntax have. I *think* that the issue with $this in closures has been fixed, though I don't entirely understand that one. parse_url does not support protocol-relative URLs in HHVM though. I don't know about traits. --Krenair (talk • contribs) 17:50, 9 June 2013 (UTC)
- I should probably add to parse_url protocol-relative support: PHP did this with an extra two lines of code and an extra test (pull req), and it seems you can literally just copy those two new lines in ext/standard/url.c across to HHVM's hphp/runtime/base/zend/zend_url.cpp (line 151 on the latest master), run 'make' again, restart hhvm, and suddenly it seems to support protocol-relative URLs. --Krenair (talk • contribs) 18:34, 9 June 2013 (UTC)