Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Sara Golemon
> On 02/18/2016 02:10 PM, Colin O'Dell wrote: >> >> I'd like to propose an RFC to deprecate and eventually remove the "var" >> keyword. > I'm tepidly +1 this. It's not hurting anything, but var's time has past. Let's deprecate it, and in four year's time as we're starting to talk PHP8, we can ask

Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Stas Malyshev
Hi! > Although it is true that an upgrade from PHP 7 to 8 will involve more > work, it is not true that it does not hurt anyone. This is a well > known problem in design: > > https://www.nngroup.com/articles/reduce-redundancydecrease-duplicated-de > sign-decisions/ This is all generic advice whic

Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread François Laupretre
Hi, Le 18/02/2016 20:10, Colin O'Dell a écrit : Hello everyone, I'd like to propose an RFC to deprecate and eventually remove the "var" keyword. My understanding is that this keyword was kept in PHP 5 for backwards-compatibility with PHP 4. However, it's been 9 years since PHP 4 was discontin

Re: [PHP-DEV] Re: [RFC][VOTE] Generalize support of negative string offsets

2016-02-18 Thread François Laupretre
Le 19/02/2016 00:48, Andrea Faulds a écrit : You might have to make yet another post. This last one had a new subject, but it still was marked as a reply, so my news client threads it in with the original thread. Just posted the message once again. Still appears in the same thread. It seems

[PHP-DEV] [RFC][VOTE] Generalize support of negative string offsets

2016-02-18 Thread François Laupretre
Hi, Starting vote about : https://wiki.php.net/rfc/negative-string-offsets Voting period ends Friday, March 4th 00:00 UTC. As, during the discussion, we talked about many related subjects, please remember that the subjects below remain out of scope of this RFC and deserve their own thread :

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

2016-02-18 Thread Nikita Popov
On Thu, Feb 18, 2016 at 11:45 PM, Zeev Suraski wrote: > > With rand functions, I don't think we need to touch them. For some > > applications, low-key randomness is just fine - if you need to shuffle > > array of 20 elements or randomize unit test to ensure you're not testing > > same value all t

[PHP-DEV] PHP 7.0.4 RC1 is available for testing

2016-02-18 Thread Anatol Belski
Hi, PHP 7.0.4 RC1 was just released and can be downloaded from: https://downloads.php.net/~ab/ The Windows binaries are available at http://windows.php.net/qa/ This release contains a number of bugfixes. For the list of bugfixes that you can target in your testing, please refer to the

[PHP-DEV] Re: [RFC][VOTE] Generalize support of negative string offsets

2016-02-18 Thread Andrea Faulds
Hi François, François Laupretre wrote: (sorry, posting again with modified subject to force new thread) You might have to make yet another post. This last one had a new subject, but it still was marked as a reply, so my news client threads it in with the original thread. On a different not

Re: [PHP-DEV] Re: [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Colin O'Dell
> > By the time of 8.0 nothing would be different from today. 8.0 is not > some magic number by which old code ceases to exist. > The usage of "var" may continue to decline as folks increasingly adopt the newer visibility keywords. Perhaps it's too early to make this decision and this discussion

Re: [PHP-DEV] Re: [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Colin O'Dell
> > It would have to be done in 8.0, since removing it would constitute a BC > break. > Thanks for clarifying that Tom! Makes sense to me. > It's worth noting that there were better reasons for deprecating PHP > 4-style constructors over the simple redundancy argument. Specifically, > there was

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

2016-02-18 Thread Andrea Faulds
Hi Zeev, Zeev Suraski wrote: On 18 בפבר׳ 2016, at 21:58, Andrea Faulds wrote: Hmm. Well, if we're doing mass deprecations, maybe we should finally get rid of hebrev() and hebrevc()? It feels out-of-place to have a poorly-documented standard library function specifically for converting bet

Re: [PHP-DEV] Re: [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Stanislav Malyshev
Hi! > But is there a strong reason to keep it forever, especially considering its Yes. It's the same reason - "no reason to remove". When we have action which on one hand has no tangible benefit and on the other hand has tangible harm, we should not do it. > decline in usage? Perhaps by targeti

Re: [PHP-DEV] Re: [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Colin O'Dell
> > I think it's a drop in the bucket compare to new features we're adding > plenty of on every version. These make the language a lot more complex > than var being an alias to public (not even different syntax). > Very true. I'm not proposing this because it's a great new feature. But has this l

RE: [PHP-DEV] Re: [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Thomas Punt
Hi! > I do have a general question about these types of changes: if the > deprecation were to land in 7.1, when would the actual removal take place - > 7.2 or 8.0? Or would that be a voting option? It would have to be done in 8.0, since removing it would constitute a BC break. It's worth noting

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

2016-02-18 Thread Stanislav Malyshev
Hi! >> Hmm. Well, if we're doing mass deprecations, maybe we should finally get rid >> of I must note that I think this drive to "get rid of" functions that does not stand in anybody's way (as opposed to the case of __autoload which is incompatible with superior stackable autoloader solution) is

Re: [PHP-DEV] Re: [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Zeev Suraski
> On 18 בפבר׳ 2016, at 23:23, Yasuo Ohgaki wrote: > > Hi all, > >> On Fri, Feb 19, 2016 at 4:33 AM, Andrea Faulds wrote: >> >> Colin O'Dell wrote: >>> >>> I'd like to propose an RFC to deprecate and eventually remove the "var" >>> keyword. >> >> >> I don't have a strong opinion on that, I

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

2016-02-18 Thread Zeev Suraski
> On 18 בפבר׳ 2016, at 21:58, Andrea Faulds wrote: > > > Hmm. Well, if we're doing mass deprecations, maybe we should finally get rid > of hebrev() and hebrevc()? It feels out-of-place to have a poorly-documented > standard library function specifically for converting between two different >

Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Stanislav Malyshev
Hi! > Although it is true that an upgrade from PHP 7 to 8 will involve more > work, it is not true that it does not hurt anyone. This is a well > known problem in design: > > https://www.nngroup.com/articles/reduce-redundancydecrease-duplicated-de > sign-decisions/ This is all generic advice whi

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

2016-02-18 Thread Zeev Suraski
> On 18 בפבר׳ 2016, at 23:42, Stanislav Malyshev wrote: > > Hi! > >> I've created a bulk-deprecation RFC for PHP 7.1: >> https://wiki.php.net/rfc/deprecations_php_7_1 > > I like dropping php_errormsg. Last time I tried to make error > suppression work more efficiently this was a major problem

Re: [PHP-DEV] Re: [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Colin O'Dell
> Though if we do get rid of the var syntax, I'd like it if we kept the > reserved word, because it still might be useful in future for typed > variables or different variable scoping. Good idea Andrea! Thanks for that suggestion. I do have a general question about these types of changes: if the

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

2016-02-18 Thread Zeev Suraski
> On 18 בפבר׳ 2016, at 14:42, Nikita Popov wrote: > > Hi internals! > > I've created a bulk-deprecation RFC for PHP 7.1: > https://wiki.php.net/rfc/deprecations_php_7_1 > > I'm using this RFC to collect various deprecations targeting PHP 7.1, as > having individual RFCs for these is too much m

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

2016-02-18 Thread Stanislav Malyshev
Hi! > I've created a bulk-deprecation RFC for PHP 7.1: > https://wiki.php.net/rfc/deprecations_php_7_1 > I like dropping php_errormsg. Last time I tried to make error suppression work more efficiently this was a major problematic thing AFAIR, and in general using magic variables that pop out of

Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Fleshgrinder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2/18/2016 10:32 PM, Stanislav Malyshev wrote: > Hi! > >> I'd like to propose an RFC to deprecate and eventually remove the >> "var" keyword. > > Don't see much point - it is the same as public and doesn't hurt > anyone. Removing it does not impr

Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Stanislav Malyshev
Hi! > I'd like to propose an RFC to deprecate and eventually remove the "var" > keyword. Don't see much point - it is the same as public and doesn't hurt anyone. Removing it does not improve any code in any way, just makes it harder to upgrade. -- Stas Malyshev smalys...@gmail.com -- PHP Inte

Re: [PHP-DEV] Re: [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Yasuo Ohgaki
Hi all, On Fri, Feb 19, 2016 at 4:33 AM, Andrea Faulds wrote: > > Colin O'Dell wrote: >> >> I'd like to propose an RFC to deprecate and eventually remove the "var" >> keyword. > > > I don't have a strong opinion on that, I guess I'm in favour. It seems like > a fairly harmless deprecation. > > Th

Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Fleshgrinder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2/18/2016 9:58 PM, Colin O'Dell wrote: >> What are your reasons for this proposal? >> >> I can think of multiple reasons why this might not be a good >> idea, but the only reason that pops to mind for getting rid of it >> is to make PHP work like

[PHP-DEV] Re: [RFC] Traits with interfaces

2016-02-18 Thread Kevin Gessner
On Wed, Feb 17, 2016 at 2:05 PM, Kevin Gessner wrote: > On Wed, Feb 17, 2016 at 9:25 AM, Kevin Gessner wrote: > >> Hello internals team! I'd like to propose an RFC to allow traits to >> implement interfaces. >> > > I've created a proper RFC wiki page here with the draft: > https://wiki.php.net/

Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Colin O'Dell
> What are your reasons for this proposal? > > I can think of multiple reasons why this might not be a good idea, but the > only reason that pops to mind for getting rid of it is to make PHP work > like a different style of language. I'm proposing this change because it will remove duplicate funct

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

2016-02-18 Thread Fleshgrinder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2/18/2016 8:57 PM, Andrea Faulds wrote: > > Nikita Popov wrote: >> https://wiki.php.net/rfc/deprecations_php_7_1 > > I've actually used create_function on occasion for > programmatically generating functions (in particular to create a > function

Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Walter Parker
On Thu, Feb 18, 2016 at 11:30 AM, Sebastian Bergmann wrote: > On 02/18/2016 02:10 PM, Colin O'Dell wrote: > >> I'd like to propose an RFC to deprecate and eventually remove the "var" >> keyword. >> > > +1 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http

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

2016-02-18 Thread Andrea Faulds
Hi Nikita, Nikita Popov wrote: I've created a bulk-deprecation RFC for PHP 7.1: https://wiki.php.net/rfc/deprecations_php_7_1 I'd be fine with getting rid of all of the ones suggested so far (__autoload, $php_errormsg, create_function, rand/srand). I've actually used create_function on occa

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

2016-02-18 Thread Thomas Bley
Nikita Popov wrote on 18.02.2016 13:41: > Hi internals! > > I've created a bulk-deprecation RFC for PHP 7.1: > https://wiki.php.net/rfc/deprecations_php_7_1 > > I'm using this RFC to collect various deprecations targeting PHP 7.1, as > having individual RFCs for these is too much management over

[PHP-DEV] Re: [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Andrea Faulds
Hi Colin, Colin O'Dell wrote: I'd like to propose an RFC to deprecate and eventually remove the "var" keyword. I don't have a strong opinion on that, I guess I'm in favour. It seems like a fairly harmless deprecation. Though if we do get rid of the var syntax, I'd like it if we kept the re

Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread kelerest123
-1 (minus one) Very best regards, Kubis Pandian-Fowler Od: Sebastian Bergmann Odoslané: ‎piatok‎, ‎19‎. ‎februára‎ ‎2016 ‎1‎:‎00 Komu: internals@lists.php.net On 02/18/2016 02:10 PM, Colin O'Dell wrote: > I'd like to propose an RFC to deprecate and eventually remove the "var" > key

Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Sebastian Bergmann
On 02/18/2016 02:10 PM, Colin O'Dell wrote: I'd like to propose an RFC to deprecate and eventually remove the "var" keyword. +1 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Traits with interfaces

2016-02-18 Thread Chase Peeler
On Thu, Feb 18, 2016 at 1:29 PM Nikita Popov wrote: > On Wed, Feb 17, 2016 at 3:25 PM, Kevin Gessner wrote: > > > Hello internals team! I'd like to propose an RFC to allow traits to > > implement interfaces. > > > > I've noticed s pattern in Etsy's code and elsewhere, where a trait > provides >

[PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-02-18 Thread Colin O'Dell
Hello everyone, I'd like to propose an RFC to deprecate and eventually remove the "var" keyword. My understanding is that this keyword was kept in PHP 5 for backwards-compatibility with PHP 4. However, it's been 9 years since PHP 4 was discontinued, so I'd like to bring this topic up for review.

Re: [PHP-DEV] [RFC] Traits with interfaces

2016-02-18 Thread Fleshgrinder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2/18/2016 7:28 PM, Nikita Popov wrote: > > Without given an opinion on the RFC itself, this might be > interesting for context: > > http://hhvm.com/blog/9581/trait-and-interface-requirements-in-hack > > HHVM already supports "trait Foo implemen

Re: [PHP-DEV] [RFC] Traits with interfaces

2016-02-18 Thread Nikita Popov
On Wed, Feb 17, 2016 at 3:25 PM, Kevin Gessner wrote: > Hello internals team! I'd like to propose an RFC to allow traits to > implement interfaces. > > I've noticed s pattern in Etsy's code and elsewhere, where a trait provides > a common implementation of an interface. Classes that use the tra

Re: [PHP-DEV] Re: [RFC] Traits with interfaces

2016-02-18 Thread Fleshgrinder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 First off: I like the idea of a trait being able to implement an interface and having PHP validating that because I am like Larry and prefer language construct over comments. On 2/18/2016 4:11 PM, Chase Peeler wrote: > > I agree, in theory, but I a

[PHP-DEV] RE: php-ldap pull request

2016-02-18 Thread Anatol Belski
> -Original Message- > From: Anatol Belski [mailto:anatol@belski.net] > Sent: Thursday, February 18, 2016 7:00 PM > To: 'Côme Chilliet' > Subject: RE: php-ldap pull request > > Hi Côme, > > > -Original Message- > > From: Côme Chilliet [mailto:c...@opensides.be] > > Sent: We

Re: [PHP-DEV] [RFC] Traits with interfaces

2016-02-18 Thread Kevin Gessner
On Wed, Feb 17, 2016 at 6:13 PM, Levi Morrison wrote: > On Wed, Feb 17, 2016 at 12:48 PM, Kevin Gessner wrote: > > I don't think there is enough benefit from allowing traits to declare > > interfaces, but not propagating the interface out to classes that insert > the > > trait. It does provide

Re: [PHP-DEV] Re: [RFC] Traits with interfaces

2016-02-18 Thread Kevin Gessner
Hi Chase and Larry, On Thu, Feb 18, 2016 at 10:11 AM, Chase Peeler wrote: > On Thu, Feb 18, 2016 at 5:35 AM Larry Garfield > wrote: > I'd rather the class > > still need to self-declare the interface; that it uses a trait to > > fulfill that contract is irrelevant to the outside world. > > > I

Re: [PHP-DEV] Re: [RFC] Traits with interfaces

2016-02-18 Thread Chase Peeler
On Thu, Feb 18, 2016 at 5:35 AM Larry Garfield wrote: > On Wed, Feb 17, 2016, at 01:05 PM, Kevin Gessner wrote: > > On Wed, Feb 17, 2016 at 9:25 AM, Kevin Gessner > wrote: > > > > > Hello internals team! I'd like to propose an RFC to allow traits to > > > implement interfaces. > > > > > > > I'v

[PHP-DEV] [RFC][VOTE] Generalize support of negative string offsets

2016-02-18 Thread François Laupretre
Hi, (sorry, posting again with modified subject to force new thread) Starting vote about : https://wiki.php.net/rfc/negative-string-offsets Voting period ends Friday, March 4th 00:00 UTC. As, during the discussion, we talked about many related subjects, please remember that the subjects below

Re: [PHP-DEV] [RFC][VOTE] Generalize support of negative string offsets

2016-02-18 Thread François Laupretre
Hi, Starting vote about : https://wiki.php.net/rfc/negative-string-offsets Voting period ends Friday, March 4th 00:00 UTC. As, during the discussion, we talked about many related subjects, please remember that the subjects below remain out of scope of this RFC and deserve their own thread :

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

2016-02-18 Thread Zeev Suraski
> -Original Message- > From: Nikita Popov [mailto:nikita@gmail.com] > Sent: Thursday, February 18, 2016 2:42 PM > To: PHP internals > Subject: [PHP-DEV] [RFC] Deprecations for PHP 7.1 > > Hi internals! > > I've created a bulk-deprecation RFC for PHP 7.1: > https://wiki.php.net/rfc/de

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

2016-02-18 Thread Nikita Popov
Hi internals! I've created a bulk-deprecation RFC for PHP 7.1: https://wiki.php.net/rfc/deprecations_php_7_1 I'm using this RFC to collect various deprecations targeting PHP 7.1, as having individual RFCs for these is too much management overhead. Each deprecated feature will get its own vote, of

[PHP-DEV] NEUTRAL Benchmark Results for PHP Master 2016-02-18

2016-02-18 Thread lp_benchmark_robot
Results for project PHP master, build date 2016-02-18 06:31:37+02:00 commit: 030b7ba previous commit:3244d3c revision date: 2016-02-18 00:32:48+01:00 environment:Haswell-EP cpu:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz 2x18 cores, stepping 2, LLC 45 MB

Re: [PHP-DEV] Re: [RFC] Traits with interfaces

2016-02-18 Thread Larry Garfield
On Wed, Feb 17, 2016, at 01:05 PM, Kevin Gessner wrote: > On Wed, Feb 17, 2016 at 9:25 AM, Kevin Gessner wrote: > > > Hello internals team! I'd like to propose an RFC to allow traits to > > implement interfaces. > > > > I've created a proper RFC wiki page here with the draft: > https://wiki.php

RE: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion

2016-02-18 Thread Anatol Belski
Hi Christian, > -Original Message- > From: Christian Schneider [mailto:cschn...@cschneid.com] > Sent: Wednesday, February 17, 2016 2:07 PM > To: PHP internals > Subject: [PHP-DEV] PCRE jit bug with UTF-8 and lookbehind assertion > > Hi there, > we just ran into a version of the bug "JIT