Re: [PHP-DEV] Traits behavior still up in the air in 5.4

2012-08-01 Thread Stefan Marr
Dear Stan: On 01 Aug 2012, at 01:23, Stan Vass wrote: 1. Name collisions between a trait method and a class method using the trait go unreported, the class silently shadowing the trait method:

Re: [PHP-DEV] Bringing users along ...

2012-08-01 Thread Lester Caine
Rasmus Lerdorf wrote: Having just been helping another unsophisticated user, the growing problem of incompatibility between versions is starting to hit harder. So can developers please start taking a little more care with the support of existing users! Lester, we get it. Your job is to maintain

Re: [PHP-DEV] Bringing users along ...

2012-08-01 Thread Stas Malyshev
Hi! The current raft of PHP problems arise from the fact that we actually put a lot of emphasis on not breaking backward compatibility seems just to be lip service to the real problem ... Taking stuff out in PHP5.4 would be fine if people are So what would happen if it would be real

Re: [PHP-DEV] Bringing users along ...

2012-08-01 Thread Lester Caine
Stas Malyshev wrote: Helping to solve the problem would also help everybody else upgrade TO PHP5.4? OK, so what help do you require? PEAR and PECL that work with PHP5.4 out of the box? At least the core of PEAR that does not throw strict warnings from a stock install of PHP5.4 as E_STRICT is

Re: [PHP-DEV] Bringing users along ...

2012-08-01 Thread Stas Malyshev
Hi! PEAR and PECL that work with PHP5.4 out of the box? At least the core of PEAR that does not throw strict warnings from a stock install of PHP5.4 as E_STRICT is on. For PEAR is think it is a wrong list, as for PECL most extensions are maintained by their maintainers, and internals

Re: [PHP-DEV] Bringing users along ...

2012-08-01 Thread Kris Craig
On Tue, Jul 31, 2012 at 11:55 PM, Lester Caine les...@lsces.co.uk wrote: Stas Malyshev wrote: Helping to solve the problem would also help everybody else upgrade TO PHP5.4? OK, so what help do you require? PEAR and PECL that work with PHP5.4 out of the box? At least the core of PEAR that

Re: [PHP-DEV] Bringing users along ...

2012-08-01 Thread Lester Caine
Stas Malyshev wrote: setting without considering the consequences ( ?= not working in PHP5.3 is STILL biting as ISP are only upgrading to PHP5.3! ) Err, I'm not sure what you mean - ?= certainly works in 5.3. Only with short tags on ... 5.4 has detached it from that, but 5.3 still switches it

Re: [PHP-DEV] Bringing users along ...

2012-08-01 Thread Stas Malyshev
Hi! Only with short tags on ... 5.4 has detached it from that, but 5.3 still switches it off by default, and convincing ISP to switch short tags on again is a lost cause :( Fixing it in PHP5.3 was rejected :( Errm... So you are complaining we're not going back in time now and make

Re: [PHP-DEV] Bringing users along ...

2012-08-01 Thread Rasmus Lerdorf
On 08/01/2012 12:57 AM, Stas Malyshev wrote: Hi! Only with short tags on ... 5.4 has detached it from that, but 5.3 still switches it off by default, and convincing ISP to switch short tags on again is a lost cause :( Fixing it in PHP5.3 was rejected :( Errm... So you are complaining

Re: [PHP-DEV] Bringing users along ...

2012-08-01 Thread Lester Caine
Rasmus Lerdorf wrote: Only with short tags on ... 5.4 has detached it from that, but 5.3 still switches it off by default, and convincing ISP to switch short tags on again is a lost cause:( Fixing it in PHP5.3 was rejected:( Errm... So you are complaining we're not going back in time now and

Re: [PHP-DEV] [RFC] Remove calls with incompatible Context

2012-08-01 Thread Andrew Faulds
Slightly off-topic, $this being equal to NULL reminds me of how ECMAScript 5 changed the value of this to undefined in strict mode when not being called as a method. I agree it's a more sensible solution, as the disappearance of a variable might be more difficult to deal with than a variable

Re: [PHP-DEV] Traits behavior still up in the air in 5.4

2012-08-01 Thread Stan Vass
The methods in the class have *always* higher precedence. This is the same 'overriding' behavior used for inheritance. From my personal perspective, changing this would lead to a major inconsistency with how subclassing works. Hi, I've subsequently read your RFC carefully and saw some of those

Re: [PHP-DEV] Bringing users along ...

2012-08-01 Thread Andrew Faulds
Hi! On 01 August 2012 at 09:36 Lester Caine les...@lsces.co.uk wrote: Rasmus Lerdorf wrote: Only with short tags on ... 5.4 has detached it from that, but 5.3 still switches it off by default, and convincing ISP to switch short tags on again is a lost cause:( Fixing it in PHP5.3 was

Re: [PHP-DEV] Traits behavior still up in the air in 5.4

2012-08-01 Thread Stan Vass
Could you please point me *exactly* to the paragraph where we have something written about static properties? I do not see that I wrote anything special about static properties in the RFC. And I do not find it in the docs either. static properties should work like normal properties. I'd like

Re: [PHP-DEV] Traits behavior still up in the air in 5.4

2012-08-01 Thread Stefan Marr
Hi Stan: On 01 Aug 2012, at 13:54, Stan Vass wrote: The methods in the class have *always* higher precedence. This is the same 'overriding' behavior used for inheritance. From my personal perspective, changing this would lead to a major inconsistency with how subclassing works. Hi, I've

Re: [PHP-DEV] Bringing users along ...

2012-08-01 Thread Lester Caine
Andrew Faulds wrote: Then can you explain why ?= has stopped working on shared hosting on a number of ISP's who have recently updated from 5.2 to 5.3 ... Which? A number of ISP's? How many are we talking about? Also, is it our problem if ISPs changed their configuration during an upgrade? How

Re: [PHP-DEV] Traits behavior still up in the air in 5.4

2012-08-01 Thread Stan Vass
From that follows that traits override the super class's methods. And, conflict resolution is only done between traits, not between a class and its traits. The class body is a definite thing. Why would you purposefully add something to a class body that conflicts with a trait? The class needs

[PHP-DEV] PHP 5.x Documentend End Of Life Dates

2012-08-01 Thread hakre
I have some simple questions about PHP 5.x End Of Life (EOL) dates: PHP 5.0 - Is there some official news-item or changelog entry on php.net that says at which date PHP 5.0 went End Of Life? PHP 5.2 - Does the End Of Support that was announced twice for PHP 5.2 has the same meaning as End Of

Re: [PHP-DEV] Traits behavior still up in the air in 5.4

2012-08-01 Thread Stefan Marr
Hi Stan: On 01 Aug 2012, at 14:56, Stan Vass wrote: From that follows that traits override the super class's methods. And, conflict resolution is only done between traits, not between a class and its traits. The class body is a definite thing. Why would you purposefully add something to a

Re: [PHP-DEV] Bringing users along ...

2012-08-01 Thread Johannes Schlüter
On Wed, 2012-08-01 at 13:38 +0100, Lester Caine wrote: The default if it's not included in the .ini is ON, but the sample .ini's both switch it off, and that is what the distributions follow when creating a clean install. ALL that was required when the problem was identified was that ?= was

Re: [PHP-DEV] Traits behavior still up in the air in 5.4

2012-08-01 Thread Stan Vass
Because it is not a matter of horizontal reuse. Why don't you get a warning when you override an inherited method? Because that is precisely the way things are supposed to work. The body of a class is not a trait. These methods are not 'equals'. I still think that design decision is a sensible

Re: [PHP-DEV] Traits behavior still up in the air in 5.4

2012-08-01 Thread Stan Vass
I'd like to apologize for my language. My goal isn't to insult anybody, especially PHP contributors of major features like traits. I hope we can talk strictly implementation issues, I think I have a good idea how we can move this forward, I'll email you a list of behavior changes that I think

Re: [PHP-DEV] Traits behavior still up in the air in 5.4

2012-08-01 Thread Stefan Marr
On 01 Aug 2012, at 16:31, Stan Vass wrote: Because it is not a matter of horizontal reuse. Why don't you get a warning when you override an inherited method? Because that is precisely the way things are supposed to work. The body of a class is not a trait. These methods are not 'equals'.

Re: [PHP-DEV] Bringing users along ...

2012-08-01 Thread Rasmus Lerdorf
On 08/01/2012 05:38 AM, Lester Caine wrote: Andrew Faulds wrote: Then can you explain why ?= has stopped working on shared hosting on a number of ISP's who have recently updated from 5.2 to 5.3 ... Which? A number of ISP's? How many are we talking about? Also, is it our problem if ISPs

Re: [PHP-DEV] Bringing users along ...

2012-08-01 Thread Philip Olson
On Aug 1, 2012, at 7:01 AM, Johannes Schlüter wrote: On Wed, 2012-08-01 at 13:38 +0100, Lester Caine wrote: The default if it's not included in the .ini is ON, but the sample .ini's both switch it off, and that is what the distributions follow when creating a clean install. ALL that was

Re: [PHP-DEV] Traits behavior still up in the air in 5.4

2012-08-01 Thread Christopher Jones
On 07/31/2012 04:23 PM, Stan Vass wrote: I'd like to point out some puzzling behaviors in Traits as they exist in the production releases of PHP 5.4. Regardless of the outcome of the mail thread, can you review the traits tests and create new tests for any behaviour not already covered?

Re: [PHP-DEV] Implicit isset in ternary operator

2012-08-01 Thread Christoph Hochstrasser
Hi, I'd be very happy if we could have something like @$var['foo'] just work by not generating any errors, but if not then probably having some syntax saying this variable or null, no notices will be good - if say it's $?foo then we could easily add defaults by doing $?foo ?: 'bar'. Making

Re: [PHP-DEV] Implicit isset in ternary operator

2012-08-01 Thread Stas Malyshev
Hi! I've looked a bit into other languages (Ruby, Python, Go) and all of them do not generate an error when an undefined dict/hash/map key is accessed. Python would definitely throw an exception: a = {} a {} print a['a'] Traceback (most recent call last): File stdin, line 1, in module

Re: [PHP-DEV] PHP 5.x Documentend End Of Life Dates

2012-08-01 Thread Kris Craig
On Wed, Aug 1, 2012 at 6:13 AM, hakre hanskren...@yahoo.de wrote: I have some simple questions about PHP 5.x End Of Life (EOL) dates: PHP 5.0 - Is there some official news-item or changelog entry on php.netthat says at which date PHP 5.0 went End Of Life? PHP 5.2 - Does the End Of Support

Re: [PHP-DEV] Implicit isset in ternary operator

2012-08-01 Thread Christoph Hochstrasser
Hi, Traceback (most recent call last): File stdin, line 1, in module KeyError: 'a' And it's just as annoying as in PHP. Actually, probably more annoying :). But it has .get() which solves the problem usually, albeit in a bit more verbose way. Also, Python has defaultdict which I would

Re: [PHP-DEV] PHP 5.x Documentend End Of Life Dates

2012-08-01 Thread Rasmus Lerdorf
On 08/01/2012 06:13 AM, hakre wrote: I have some simple questions about PHP 5.x End Of Life (EOL) dates: PHP 5.0 - Is there some official news-item or changelog entry on php.net that says at which date PHP 5.0 went End Of Life? PHP 5.2 - Does the End Of Support that was announced twice

Re: [PHP-DEV] [PROPOSED] password_hash RFC - Implementing simplified password hashing functions

2012-08-01 Thread Ángel González
On 31/07/12 22:20, Peter Lind wrote: On 31 July 2012 22:02, Anthony Ferrara ircmax...@gmail.com wrote: Peter, On Tue, Jul 31, 2012 at 3:46 PM, Peter Lind peter.e.l...@gmail.com wrote: On 31 July 2012 18:21, Anthony Ferrara ircmax...@gmail.com wrote: *snip* Also, be aware that BCrypt only

Re: [PHP-DEV] PHP 5.x Documentend End Of Life Dates

2012-08-01 Thread Ángel González
On 01/08/12 20:02, Kris Craig wrote: On Wed, Aug 1, 2012 at 6:13 AM, hakre hanskren...@yahoo.de wrote: I have some simple questions about PHP 5.x End Of Life (EOL) dates: PHP 5.0 - Is there some official news-item or changelog entry on php.netthat says at which date PHP 5.0 went End Of

[PHP-DEV] Internet Defense League - Update

2012-08-01 Thread Kris Craig
Hey guys, Sorry for the delayed report. They never responded to my last follow-up email a couple weeks ago and I kinda forgot about it until now. Fortunately, I checked the website and it looks like they do have us listed finally. Here's the URL: http://internetdefenseleague.org/ Please

Re: [PHP-DEV] PHP 5.x Documentend End Of Life Dates

2012-08-01 Thread Kris Craig
On Wed, Aug 1, 2012 at 11:16 AM, Ángel González keis...@gmail.com wrote: On 01/08/12 20:02, Kris Craig wrote: On Wed, Aug 1, 2012 at 6:13 AM, hakre hanskren...@yahoo.de wrote: I have some simple questions about PHP 5.x End Of Life (EOL) dates: PHP 5.0 - Is there some official news-item

Re: [PHP-DEV] Implicit isset in ternary operator

2012-08-01 Thread Alex Aulbach
2012/8/1 Christoph Hochstrasser christoph.hochstras...@gmail.com: I'm lately using @$var[key] a lot (despite it's slowness) and I like it a lot. It makes most code a lot more readable. I would be +1 for it, if we can make it fast. I think most people (me included) want only to avoid the

Re: [PHP-DEV] PHP 5.x Documentend End Of Life Dates

2012-08-01 Thread Rasmus Lerdorf
On 08/01/2012 11:16 AM, Ángel González wrote: There should be a page like http://www.php.net/ancient-versions listing the versions with the date they went EOL and how much time has passed since them. Some scary warnings about Known remote code execution vulnerabe may be good too. The goal?

Re: [PHP-DEV] PHP 5.x Documentend End Of Life Dates

2012-08-01 Thread Ferenc Kovacs
On Wed, Aug 1, 2012 at 8:16 PM, Ángel González keis...@gmail.com wrote: On 01/08/12 20:02, Kris Craig wrote: On Wed, Aug 1, 2012 at 6:13 AM, hakre hanskren...@yahoo.de wrote: I have some simple questions about PHP 5.x End Of Life (EOL) dates: PHP 5.0 - Is there some official news-item

Re: [PHP-DEV] [PROPOSED] password_hash RFC - Implementing simplified password hashing functions

2012-08-01 Thread Alex Aulbach
2012/8/1 Ángel González keis...@gmail.com: I'd go with the hashing. I'd would however produce a slightly different prefix than with bare bcrypt. Like that. And I thought some about it. Currently, there is no real need for that. And no one is hindered to implement his own version-information

RE: [PHP-DEV] [PROPOSED] password_hash RFC - Implementing simplified password hashing functions

2012-08-01 Thread Jonathan Bond-Caron
Also, be aware that BCrypt only uses the first 72 characters of the password field. So if you use a hex encoded sha512 output, a good deal of entropy would be lost (almost half of it)... Good to know, do most hash algorithms have limitations on the # of chars as input? That would

RE: [PHP-DEV] [PROPOSED] password_hash RFC - Implementing simplified password hashing functions

2012-08-01 Thread Jonathan Bond-Caron
On Tue Jul 31 12:21 PM, Anthony Ferrara wrote: Jonathan, Again, implementing something in the core that's not verified and can't be implemented well by the vast majority of developers out there. Alright so I found some people supporting my claims:

Re: [PHP-DEV] PHP 5.x Documentend End Of Life Dates

2012-08-01 Thread Larry Garfield
On 08/01/2012 01:24 PM, Kris Craig wrote: There should be a page like http://www.php.net/ancient-versions listing the versions with the date they went EOL and how much time has passed since them. Some scary warnings about Known remote code execution vulnerabe may be good too. The goal? To serve

Re: [PHP-DEV] PHP 5.x Documentend End Of Life Dates

2012-08-01 Thread Kris Craig
On Wed, Aug 1, 2012 at 11:45 AM, Rasmus Lerdorf ras...@lerdorf.com wrote: On 08/01/2012 11:16 AM, Ángel González wrote: There should be a page like http://www.php.net/ancient-versions listing the versions with the date they went EOL and how much time has passed since them. Some scary

Re: [PHP-DEV] PHP 5.x Documentend End Of Life Dates

2012-08-01 Thread Adam Harvey
On 2 August 2012 12:30, Kris Craig kris.cr...@gmail.com wrote: First we'll need to consolidate the information regarding when each version was EOL'd. Are they all in news announcements, or are they scattered between announcements, listserv threads, etc? If we're going to do this, we may as