[PHP-DEV] Request for wiki account activation

2016-11-19 Thread Net Mo
Hi PHP! I'm willing to write some awesome RFCs to make PHP great again, I'll build a wall and it'll be tremendous. Very very great. :-P But I'll start with something simple first :-P it is about improving ArrayIterator (you can find a draft here https://gist.github.com/Netmosfera/200c5e923f34cbc0

Re: [PHP-DEV] [RFC Discussion] Typed Properties

2016-03-18 Thread Net Mo
class SomeStruct{ public int $a; } class Joe { public SomeStruct $struct; function test1() : SomeStruct{ return new SomeStruct();// TypeError: can't return a type whose fields' type declarations aren't fulfilled } function test2(SomeStruct $struct){

[PHP-DEV] Re: [RFC] Deprecations for PHP 7.1

2016-02-23 Thread Net Mo
I'd also deprecate anything related to passing the session id in query strings in ext/session and have it only working with cookies. session.use_cookies session.use_only_cookies url_rewriter.tags and possibly also arg_separator.* if related

[PHP-DEV] Additional ideas about the design by contract RFC

2015-08-17 Thread Net Mo
I like the idea a lot, although I'm not so sure of the proposed syntax. I would make it less specific. Preconditions/Postconditions assertions are indeed useful but the functionality could be extended to regular checks as well by making the error user defined. Plus, I would prefer having named ch

Re: [PHP-DEV] Change IntlChar::getNumericValue() to return something less horrible when the char is not numeric?

2015-07-08 Thread Net Mo
I've asked Sara to add the NO_NUMERIC_VALUE constant to IntlChar because it is missing, but she suggested the method could return NULL instead. Any of the two options is fine for me... 2015-07-08 21:45 GMT+02:00 Stanislav Malyshev : > Hi! > > > ICU documentation: > > > http://icu-project.org/apir

[PHP-DEV] Change IntlChar::getNumericValue() to return something less horrible when the char is not numeric?

2015-07-08 Thread Net Mo
ICU documentation: http://icu-project.org/apiref/icu4c/uchar_8h.html#a36982efc84143b9bb5a11bf54b86af48 Currently the PHP function returns the U_NO_NUMERIC_VALUE constant, which is set to the very weird "float(-123456789)"; basically it's a value that it's certain it doesn't have an Unicode numeric