Re: [PHP-DEV] RFC - Immutable classes

2016-09-09 Thread Fred Emmott
I see Reflection is still todo; should there be a similar escape hatch to ReflectionMethod::setAccessible()? This would allow things like: https://gist.github.com/fredemmott/01ad55c0c03c8d7ba62bbd6e9fb23686 (apologies for t

Re: [PHP-DEV] RFC about automatic template escaping

2016-03-29 Thread Fred Emmott
Hi - I’m currently the maintainer of facebook/xhp-lib; as XHP’s been mentioned a few times here, if someone’s interested in making a PHP7 version: - while I won’t be able to directly work on a PHP7 port, I’ll be happy to help in any other way (eg any questions about design/decisions) - the mai

Re: [PHP-DEV] [RFC] Add PHP_ENGINE Constant

2016-02-03 Thread Fred Emmott
ll what version of HippyVM you're running on, > and to even check that you're using Hippy you need to check for E_HIPPY_WARN. > > We have a chance to standardize, and "mandate" that the information is > exposed explicitly, and done so consistently. > > On

Re: [PHP-DEV] [RFC] Add PHP_ENGINE Constant

2016-02-03 Thread Fred Emmott
> On Feb 3, 2016, at 4:03 AM, Davey Shafik wrote: > > Hi all, > > I want to bring forward a very simple RFC to help solve an issue I had this > week of writing unit tests that take into account differing behaviors in > PHP and HHVM. > > It's actually very difficult to be able to reliably deter

Re: [PHP-DEV] [RFC] Add PHP_ENGINE Constant

2016-02-03 Thread Fred Emmott
> On Feb 3, 2016, at 2:00 PM, Davey Shafik wrote: > > On Wednesday, February 3, 2016, Sara Golemon > wrote: > > Unfortunately Sara, the types of things you generally have to work around > are minor things, like differences in DOM, or the inability to json_encode > DateT

[PHP-DEV] token_get_all(): additional location information, and raw tokens

2016-01-05 Thread Fred Emmott
I’m planning on adding this functionality in some form to HHVM, however if it’s also wanted in PHP, I’d rather not add something HHVM-specific and will be happy to put up RFCs :) Location Information token_get_all() returns a line number for some tokens. I propose adding an additional TOK

Re: [PHP-DEV] Revisit trailing commas in function call parameters?

2015-06-30 Thread Fred Emmott
Some more context: https://bugs.php.net/bug.php?id=64176 https://wiki.php.net/rfc/trailing-comma-function-args (failed 15-20) On a more positive side, this change was very well received within Faceboo

Re: [PHP-DEV] [RFC] Extension Prepend Files

2015-01-08 Thread Fred Emmott
> On Jan 7, 2015, at 2:18 AM, Pierre Joye wrote: >> That's very much the case. One extension, one "install". It doesn't >> matter whether some of the extension is written in C, and other parts in >> PHP. HHVM is *all* about this. Making use of C where you need it, and >> otherwise just write the

[PHP-DEV] VCS Account Request: fredemmott

2014-07-29 Thread Fred Emmott
PHP language spec -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php