Re: [PHP-DEV] PHP 5.6.6 is available

2015-02-19 Thread Florian Margaine
Hi Ferenc, Ferenc Kovacs writes: > Hello! > > The PHP development team announces the immediate availability of PHP 5.6.6. > This release fixes several bugs and addresses CVE-2015-0235 and > CVE-2015-0273. > All PHP 5.6 users are encouraged to upgrade to this version. > > For source downloads of

[PHP-DEV] [RFC][DISCUSSION] Context Sensitive lexer

2015-02-19 Thread Marcio Almada
Hi internals, I'd like to put the "Context Sensitive Lexer" RFC into discussion phase: RFC: https://wiki.php.net/rfc/context_sensitive_lexer TL;DR commit: https://github.com/marcioAlmada/php-src/commit/c01014f9 PR: https://github.com/php/php-src/pull/1054 PHP currently has ~64 globally reserved

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-19 Thread Marcio Almada
2015-02-12 20:55 GMT-03:00 Stelian Mocanita : > > > >> I could compromise to send pull requests and update some of these tools >> (at >> least the open source ones) in time for PHP7 release. >> > > Print screen taken, will hold you to your words. > > Please do ;) If the RFC passes I'll be happy to

Re: [PHP-DEV] Re: [RFC] Exceptions in the engine

2015-02-19 Thread Dmitry Stogov
I'm not sure. Currently we don't use namespaces for core classes, but I won't object to change this. Nikita, what do you think? Thanks. Dmitry. On Fri, Feb 20, 2015 at 10:01 AM, Yasuo Ohgaki wrote: > Hi all, > > On Fri, Feb 20, 2015 at 12:14 AM, Trevor Suarez wrote: > >> I think that naming th

Re: [PHP-DEV] Reviving scalar type hints

2015-02-19 Thread Dmitry Stogov
On Fri, Feb 20, 2015 at 4:57 AM, Anthony Ferrara wrote: > Larry, > > > Anthony, can you expand here at all about the practical benefits of > > strong-typing for variable passing for the compiler? That seems to be > the > > main point of contention: Whether or not there are real, practical > bene

Re: [PHP-DEV] Re: [RFC] Exceptions in the engine

2015-02-19 Thread Yasuo Ohgaki
Hi all, On Fri, Feb 20, 2015 at 12:14 AM, Trevor Suarez wrote: > I think that naming the new parent exception something like "Throwable" or > "Catchable" (as Nikita previously suggested) would be a bit more concise in > meaning than "BaseException". You may not have even meant that name as a > f

Re: [PHP-DEV] Nightmares on type hints, annotations, and aop...

2015-02-19 Thread Yasuo Ohgaki
Hi Bishop, On Wed, Feb 18, 2015 at 9:18 PM, Bishop Bettini wrote: > THING 2: Hints are truthy callables > > function my_mixed($m) { > return (null === $m || is_string($m)); > } > function f(is_scalar $s, is_int $i, my_mixed $m) {}; > > This is interesting idea. I'm sure it will be much slowe

Re: [PHP-DEV] Re: [RFC] Reserving More Types in PHP 7

2015-02-19 Thread Kalle Sommer Nielsen
2015-02-20 2:36 GMT+01:00 Levi Morrison : > int, integer > bool, boolean > true, false > float, double I guess we should add 'real' here as well, since we still have the (real) type cast and is_() type check for consistency: C:\dev\php-src>php -r "var_dump((real) 42, is_real(13.37));" float(42) b

RE: [PHP-DEV] Nightmares on type hints, annotations, and aop...

2015-02-19 Thread Zeev Suraski
Bishop, Pardon me for saying so, but I don't think you're on to a huge scoop here. Scalar type hints - of all the kinds we've been talking about here, be them strict, weak or coercive - can be easily emulated with a couple of lines of code, we all know that. It's been known for years that strict

[PHP-DEV] PHP 5.6.6 is available

2015-02-19 Thread Ferenc Kovacs
Hello! The PHP development team announces the immediate availability of PHP 5.6.6. This release fixes several bugs and addresses CVE-2015-0235 and CVE-2015-0273. All PHP 5.6 users are encouraged to upgrade to this version. For source downloads of PHP 5.6.6 please visit our downloads page: http://

RE: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread François Laupretre
> De : Pierre Joye [mailto:pierre@gmail.com] > > Such as? Competition is good and my past experiences is that in cases > like this one, it is nearly an utopia to think that the other party > will actually try to reach your needs. So the only way to actually get > a RFC representing what you wan

Re: [PHP-DEV] Re: [RFC] Reserving More Types in PHP 7

2015-02-19 Thread Sara Golemon
On Thu, Feb 19, 2015 at 5:36 PM, Levi Morrison wrote: > I would like to discuss a small RFC for reserving more types in PHP 7: > https://wiki.php.net/rfc/reserve_more_types_in_php_7 > > Essentially it proposes to reserve: > > int, integer > bool, boolean > true, false > float, double > string > nu

RE: [PHP-DEV] Re: [RFC] Reserving More Types in PHP 7

2015-02-19 Thread François Laupretre
Hi Levi, Just my opinion : Add 'resource', 'object', 'scalar', 'mixed', 'numeric' Remove 'double' (avoid this alias if we decide to encourage 'float' everywhere) Not sure we'll use Boolean and integer but reserve also. Hope 'null', 'true', and 'false' can technically be used as type hints. If

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Pierre Joye
On Thu, Feb 19, 2015 at 6:13 PM, François Laupretre wrote: >> De : Pádraic Brady [mailto:padraic.br...@gmail.com] >> >> As I understand it, Andrea left her RFC free to be reused, reopened >> and derived without any specific limitation. It would therefore appear >> that it would be possible for the

Re: [PHP-DEV] [RFC] Comparable: the revenge

2015-02-19 Thread Pierre Joye
On Thu, Feb 19, 2015 at 1:40 PM, Adam Harvey wrote: > Hi all, > > Those of you with long memories will remember that I proposed a > Comparable interface way back in the pre-5.4 days, but withdrew it > when it became obvious that there was no consensus for it as a feature > and that a vote was like

Re: [PHP-DEV] Nightmares on type hints, annotations, and aop...

2015-02-19 Thread Bishop Bettini
> > >> THING 1: Hints are just is_* wrappers > > > > Wrong. Only *strict* types are. > > > >> THING 2: Hints are truthy callables > >> > >> function my_mixed($m) { > >> return (null === $m || is_string($m)); > >> } > >> function f(is_scalar $s, is_int $i, my_mixed $m) {}; > > > > Not sure I und

RE: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread François Laupretre
> De : Pádraic Brady [mailto:padraic.br...@gmail.com] > > As I understand it, Andrea left her RFC free to be reused, reopened > and derived without any specific limitation. It would therefore appear > that it would be possible for there to be 100 derived RFCs all owned > by different people, i.e. n

Re: [PHP-DEV] Reviving scalar type hints

2015-02-19 Thread Anthony Ferrara
Larry, > Anthony, can you expand here at all about the practical benefits of > strong-typing for variable passing for the compiler? That seems to be the > main point of contention: Whether or not there are real, practical benefits > to be had in the compiler of knowing that a call will be in "str

[PHP-DEV] Re: [RFC] Reserving More Types in PHP 7

2015-02-19 Thread Levi Morrison
Sorry: Apparently hit some hotkey for send. On Thu, Feb 19, 2015 at 6:35 PM, Levi Morrison wrote: > Dear Internals, > > I would like to discuss a small RFC for reserving more types in PHP 7: > https://wiki.php.net/rfc/reserve_more_types_in_php_7 > > Essentially it proposes to reserve: int, integ

[PHP-DEV] [RFC] Reserving More Types in PHP 7

2015-02-19 Thread Levi Morrison
Dear Internals, I would like to discuss a small RFC for reserving more types in PHP 7: https://wiki.php.net/rfc/reserve_more_types_in_php_7 Essentially it proposes to reserve: -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] Reviving scalar type hints

2015-02-19 Thread François Laupretre
Hi Larry, Thanks for trying to sort this out. This is very valuable work. > De : Larry Garfield [mailto:la...@garfieldtech.com] > > Anthony, can you expand here at all about the practical benefits of > strong-typing for variable passing for the compiler? I will let Anthony reply as the question

Re: [PHP-DEV] Re: [RFC-Discuss] Scalar Type Declarations v0.5

2015-02-19 Thread Pádraic Brady
On 19 February 2015 at 23:07, Anthony Ferrara wrote: > All, > > An interesting point was brought up related to block mode: > https://twitter.com/drrotmos/status/568540722586107904 > > Namely that generated file caches may need the ability to switch block > mode on-and-off. > > I'm considering maki

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Pádraic Brady
Hi François, On 19 February 2015 at 23:13, François Laupretre wrote: > I never asked anyone to abandon his work. I just asked to respect the rules. > What I told you first is that, while Sara did not resigned formally, I didn't > see why you could publish derived concurrent work from the RFC sh

RE: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread François Laupretre
Hi Anthony, I'll post a more elaborate message later, including what I *really* sent to Sara, so that we can estimate how rude I was. I'll also explain the context. But I need a little more time to write it (I know I'm always asking for time ;). The replies below are just quick and dirty. > De

[PHP-DEV] Re: [RFC-Discuss] Scalar Type Declarations v0.5

2015-02-19 Thread Anthony Ferrara
All, An interesting point was brought up related to block mode: https://twitter.com/drrotmos/status/568540722586107904 Namely that generated file caches may need the ability to switch block mode on-and-off. I'm considering making the change to add that. If that happens, declare must be the outer

Re: [PHP-DEV] [RFC-Discuss] Scalar Type Declarations v0.5

2015-02-19 Thread Anthony Ferrara
Robert, > you wrote: "aliases are removed (integer and boolean)" > what about the aliases real and double? They were never part of Andrea's proposal. So they were never accepted anyway. > You wrote: "behaviour of weak type checks: float -> int *Only non-NaN floats > between PHP_INT_MIN and PHP_

Re: [PHP-DEV] Reviving scalar type hints

2015-02-19 Thread Larry Garfield
On 02/19/2015 04:13 AM, Zeev Suraski wrote: -Original Message- From: Larry Garfield [mailto:la...@garfieldtech.com] Sent: Thursday, February 19, 2015 9:00 AM To: internals@lists.php.net Subject: Re: [PHP-DEV] Reviving scalar type hints On 02/17/2015 01:30 PM, Zeev Suraski wrote: Yes, I

Re: [PHP-DEV] [RFC] Comparable: the revenge

2015-02-19 Thread Levi Morrison
>> But even here I would rather just take a function instead of requiring >> it to be the instance of some interface: >> >> function sort($input, callable $comparator($a, $b): int) { >> /* … */ >> } > > Fair, but the sorting case isn't the only one that matters, > particularly with <=> now as p

Re: [PHP-DEV] [RFC] Comparable: the revenge

2015-02-19 Thread Adam Harvey
I don't want to get into a lengthy debate (you have your opinion; I have mine!), but to rebut a couple of specific points: On 19 February 2015 at 14:19, Levi Morrison wrote: > Another issue: it allows comparing an object to non-objects (even > though the stated goal is only to compare two objects

Re: [PHP-DEV] [RFC] Comparable: the revenge

2015-02-19 Thread Levi Morrison
> Those of you with long memories will remember that I proposed a > Comparable interface way back in the pre-5.4 days, but withdrew it > when it became obvious that there was no consensus for it as a feature > and that a vote was likely to fail. > > RFC: https://wiki.php.net/rfc/comparable > PR: ht

[PHP-DEV] [RFC] Comparable: the revenge

2015-02-19 Thread Adam Harvey
Hi all, Those of you with long memories will remember that I proposed a Comparable interface way back in the pre-5.4 days, but withdrew it when it became obvious that there was no consensus for it as a feature and that a vote was likely to fail. RFC: https://wiki.php.net/rfc/comparable PR: https:

Re: [PHP-DEV] Re: [RFC] Exceptions in the engine

2015-02-19 Thread Dmitry Stogov
On Thu, Feb 19, 2015 at 11:26 PM, Anthony Ferrara wrote: > Nikita (and all), > > > * Subclassing: Should there be more specific subclasses of > EngineException > > for particular errors? > > I think there's an important case to be made here. I don't think every > error belongs having its own sub

[PHP-DEV] [RFC Announce] Generator Return Expressions

2015-02-19 Thread Daniel Lowrey
Hi folks :) I know everyone is already quite busy attempting to resolve scalar types, assertions, etc. So let me add another RFC to your pre-feature-freeze cognitive overload! This proposal allows the specification of and access to Generator return expressions: https://wiki.php.net/rfc/generator-

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Anthony Ferrara
Stas, >> I created a forked RFC. You can keep her as lead all you want, that >> doesn't mean I can't move forward with my RFC. > > I think it would really be better to have a lot less "us vs them" and a > bit more cooperative spirit here. That ignores the mail that spawned this thread (and the on

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Stas Malyshev
Hi! > So rather than go for the 70-75% consensus that we **know** we have, How we magically know that? We have the (unfinished) vote, which has a tiny bit over 66% for the proposal. Where 75% comes from? > I created a forked RFC. You can keep her as lead all you want, that > doesn't mean I can't

Re: [PHP-DEV] Re: [RFC] Exceptions in the engine

2015-02-19 Thread Anthony Ferrara
Nikita (and all), > * Subclassing: Should there be more specific subclasses of EngineException > for particular errors? I think there's an important case to be made here. I don't think every error belongs having its own subclass, but there are at least a few cases where it may make sense. This l

Re: [PHP-DEV] [VOTE] Expectations

2015-02-19 Thread Joe Watkins
There isn't legitimate technical justification for or against using custom exceptions. Since it's entirely based on preference, and the kind of utilitarian argument you can make for their use, it's acceptable that this is resolved as part of the vote. It's not a huge deal. Cheers Joe On Thu, Fe

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Zeev Suraski
On 19 בפבר׳ 2015, at 22:08, Anthony Ferrara wrote: > > Zeev, > > Based on Sara's clarification in this thread, I owe you a formal > apology. I interpreted something she said incorrectly, which was then > compounded by messages in private and on-list this morning. I then > attributed both of you

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Anthony Ferrara
Zeev, Based on Sara's clarification in this thread, I owe you a formal apology. I interpreted something she said incorrectly, which was then compounded by messages in private and on-list this morning. I then attributed both of you qualities and motives that have been proven false. For this, I am

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Lester Caine
On 19/02/15 18:16, Pierre Joye wrote: > This is not the point of this discussion. What you referto has to be > done for anything PHP uses, every library, every extension or services > (http or other). Now read the rest of what I wrote ... Where ever validated data comes from ... it does not need a

Re: [PHP-DEV] Digit separators for numeric literals

2015-02-19 Thread Christoph Becker
Nikita Nefedov wrote: > 2015-02-19 6:44 GMT+04:00 Rasmus Lerdorf : >> >> I think it will be difficult to find a separator character that doesn't >> make a mess of the grammar. > > Why not space? It's certainly possible (I just checked) and it would look > clear I guess: > > my_func(1 999 999)

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Pierre Joye
On Thu, Feb 19, 2015 at 10:02 AM, Lester Caine wrote: > While typing this I did think to just scrap what I was writing, but I > think it is relevant if only if someone can explain why I am wrong? > > On 19/02/15 17:06, Anthony Ferrara wrote: With strictly typed $a and $b, the expression drops

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Lester Caine
While typing this I did think to just scrap what I was writing, but I think it is relevant if only if someone can explain why I am wrong? On 19/02/15 17:06, Anthony Ferrara wrote: >>> With strictly typed $a and $b, the expression drops to 1 possible >>> >> permutation. And you can detect if it's a

RE: [PHP-DEV] Scalar Type Hints v0.4

2015-02-19 Thread François Laupretre
Hi Patrick, I understand but we cannot include casting rules in the scope. And, while attractive, I think ZPP and casting cannot share the same ruleset, at least as long as casting is defined as aimed to being as permissive as possible. François De : Patrick ALLAERT [mailto:patrickall

Re: [PHP-DEV] [VOTE] Expectations

2015-02-19 Thread Pierre Joye
On Thu, Feb 19, 2015 at 9:13 AM, Leigh wrote: > On 19 February 2015 at 15:45, Pierre Joye wrote: >> Still, no announce for a discussion about this specific RFC. And >> really, the content of the RFC is almost empty, pointing to the ML >> archive is really not the right way :) > > There was an RFC

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Stanislav Malyshev
Hi! > At the function border, yes. But not beyond that. Not sure what you mean here. If the value is identified as int, it remains int. How strict typing would change that? > Sort-of correct. We don't know if A is true, but we know what > conditions need to exist for A->B to be true. We know tha

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Sara Golemon
On Thu, Feb 19, 2015 at 5:24 AM, Anthony Ferrara wrote: > On Thu, Feb 19, 2015 at 6:58 AM, François Laupretre wrote: >> As long as she does not officially gives up (posting to the list), I'll keep >> considering Sara still has the lead on scalar type hinting. If she >> officially gives up, I'll

Re: [PHP-DEV] [VOTE] Expectations

2015-02-19 Thread Leigh
On 19 February 2015 at 15:45, Pierre Joye wrote: > Still, no announce for a discussion about this specific RFC. And > really, the content of the RFC is almost empty, pointing to the ML > archive is really not the right way :) There was an RFC announce thread 3 days ago. I agree 3 days is a short

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Anthony Ferrara
Stas, >> The reason is, with strict typing you only need to deal with 8 >> possible states for every variable (int, float, bool, resource, array, >> object, callable, null and string). And many of those states you can >> eliminate based on context (you know an argument passed to an int >> declared

Re: [PHP-DEV] Reviving scalar type hints

2015-02-19 Thread Lester Caine
On 19/02/15 12:47, François Laupretre wrote: > I didn't add restrictions specific to number representation in the draft > ruleset yet, becausen while I think that's an important point, I didn't have > time to study it in depth. > > I know you're an expert on this as you continuously (rightly) ra

Re: [PHP-DEV] [RFC] Exceptions in the engine

2015-02-19 Thread Jonathan Wage
I am not familiar with the implementation details but from my perspective this would be a nice improvement. I have had a difficult time debugging PHP fatal errors over the years and I think this kind of change would help improve that. On Mon, Oct 6, 2014 at 4:53 PM, Nikita Popov wrote: > Hi inte

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Stanislav Malyshev
Hi! > Based on the no reasons that people presented, and some back-of-envelope math. That is not "knowing", much less "**knowing**". That is a guess based on an estimate and set of assumptions, some of which very well may be wrong (such as, people can have more than one reason to vote no). > The

Re: [PHP-DEV] Re: [RFC] Exceptions in the engine

2015-02-19 Thread Dan Ackroyd
On 19 February 2015 at 16:25, Dmitry Stogov wrote: > > we are tying to > do it with minimal breaks for our users. If we may keep compatibility, we > would prefer to keep it, Yeah - you still haven't said why choosing to extend exception rather than using an interface has fewer BC problems. > We

Re: [PHP-DEV] Re: [RFC] Exceptions in the engine

2015-02-19 Thread Dmitry Stogov
On Thu, Feb 19, 2015 at 7:06 PM, Dan Ackroyd wrote: > On 19 February 2015 at 15:46, Dmitry Stogov wrote: > > Exception declares protected properties that may be used in child classes > > directly. > > This is not possible with interface. > > So, you're saying it's easier to implement? > > That i

Re: [PHP-DEV] Reviving scalar type hints

2015-02-19 Thread Pierre Joye
On Thu, Feb 19, 2015 at 8:21 AM, Lester Caine wrote: > On 19/02/15 12:52, Zeev Suraski wrote: >>> Now that all made sense! >>> > >>> > My only grey area is 'allowing sensible ones' where the size is an >>> > integral part >>> > of what is 'sensible' ... the one where conventional strict typing use

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Anthony Ferrara
Arvids, > I meant it in a way that no other RFC has failed so many times or had so > much misunderstanding or divide. No scalar type proposal has made it through a vote. So none of them have technically failed (all except the current one were withdrawn). > Sometimes it is required to ditch the p

Re: [PHP-DEV] Reviving scalar type hints

2015-02-19 Thread Lester Caine
On 19/02/15 12:52, Zeev Suraski wrote: >> Now that all made sense! >> > >> > My only grey area is 'allowing sensible ones' where the size is an >> > integral part >> > of what is 'sensible' ... the one where conventional strict typing uses a >> > type >> > of the right size? > I think the guiding p

AW: [PHP-DEV] [RFC-Discuss] Scalar Type Declarations v0.5

2015-02-19 Thread Robert Stoll
Hey Anthony, > -Ursprüngliche Nachricht- > Von: Anthony Ferrara [mailto:ircmax...@gmail.com] > Gesendet: Mittwoch, 18. Februar 2015 21:45 > An: internals@lists.php.net > Betreff: [PHP-DEV] [RFC-Discuss] Scalar Type Declarations v0.5 > > Dear Internals, > > Since the resignation of Andrea

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Anthony Ferrara
Stas, On Thu, Feb 19, 2015 at 9:32 AM, Stanislav Malyshev wrote: > Hi! > >> So rather than go for the 70-75% consensus that we **know** we have, > > How we magically know that? We have the (unfinished) vote, which has a > tiny bit over 66% for the proposal. Where 75% comes from? Based on the no

Re: [PHP-DEV] [VOTE] Expectations

2015-02-19 Thread Pierre Joye
On Thu, Feb 19, 2015 at 7:45 AM, Pierre Joye wrote: > On Thu, Feb 19, 2015 at 7:16 AM, Dmitry Stogov wrote: >> >> >> On Thu, Feb 19, 2015 at 6:00 PM, Pierre Joye wrote: >>> >>> On Thu, Feb 19, 2015 at 1:09 AM, Joe Watkins >>> wrote: >>> > Morning internals, >>> > >>> > The expectations RFC

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Lester Caine
On 19/02/15 15:21, Zeev Suraski wrote: > Focusing on my email to Sara (and several others), there is NOTHING, nothing > wrong with a bit of private communications trying to gauge support, > opposition, gaps and sort out differences before going for a public > discussion. My original comment was on

Re: [PHP-DEV] Re: [RFC] Exceptions in the engine

2015-02-19 Thread Dan Ackroyd
On 19 February 2015 at 15:46, Dmitry Stogov wrote: > Exception declares protected properties that may be used in child classes > directly. > This is not possible with interface. So, you're saying it's easier to implement? That isn't a fantastic way of making a language design decision. cheers D

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Arvids Godjuks
2015-02-19 17:41 GMT+02:00 Anthony Ferrara : > Arvids, > > > I meant it in a way that no other RFC has failed so many times or had so > > much misunderstanding or divide. > > No scalar type proposal has made it through a vote. So none of them > have technically failed (all except the current one w

Re: [PHP-DEV] Re: [RFC] Exceptions in the engine

2015-02-19 Thread Dmitry Stogov
Exception declares protected properties that may be used in child classes directly. This is not possible with interface. Thanks. Dmitry. On Thu, Feb 19, 2015 at 6:31 PM, Dan Ackroyd wrote: > On 19 February 2015 at 09:54, Dmitry Stogov wrote: > > > I think we may introduce the following hierarc

Re: [PHP-DEV] [VOTE] Expectations

2015-02-19 Thread Pierre Joye
On Thu, Feb 19, 2015 at 7:16 AM, Dmitry Stogov wrote: > > > On Thu, Feb 19, 2015 at 6:00 PM, Pierre Joye wrote: >> >> On Thu, Feb 19, 2015 at 1:09 AM, Joe Watkins >> wrote: >> > Morning internals, >> > >> > The expectations RFC is now in voting phase: >> > https://wiki.php.net/rfc/expectatio

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Pierre Joye
On Thu, Feb 19, 2015 at 7:21 AM, Zeev Suraski wrote: >> -Original Message- >> From: Pierre Joye [mailto:pierre@gmail.com] >> Sent: Thursday, February 19, 2015 4:52 PM >> To: Zeev Suraski >> Cc: PHP internals >> Subject: Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations >

[PHP-DEV] PHP 5.4.38 released

2015-02-19 Thread Stanislav Malyshev
Hello! The PHP development team announces the immediate availability of PHP 5.4.38. Seven security-related bugs were fixed in this release, including CVE-2015-0273 and mitigation for CVE-2015-0235. All PHP 5.4 users are encouraged to upgrade to this version. For source downloads of PHP 5.4.38 ple

Re: [PHP-DEV] Re: [RFC] Exceptions in the engine

2015-02-19 Thread Dan Ackroyd
On 19 February 2015 at 09:54, Dmitry Stogov wrote: > I think we may introduce the following hierarchy > the existing code that caught Exception is going to be unaffected. We could do that. But it's not obviously correct, and ought to be justified as to why it would be the correct thing to do. T

Re: [PHP-DEV] [VOTE] Expectations

2015-02-19 Thread Dmitry Stogov
On Thu, Feb 19, 2015 at 5:47 PM, Markus Fischer wrote: > Hi, > > On 19.02.15 10:09, Joe Watkins wrote: > > Morning internals, > > > > The expectations RFC is now in voting phase: > > https://wiki.php.net/rfc/expectations#vote > > - I somehow miss information what the exact differences are to

Re: [PHP-DEV] Re: [RFC] Exceptions in the engine

2015-02-19 Thread Dmitry Stogov
On Thu, Feb 19, 2015 at 6:14 PM, Trevor Suarez wrote: > I think that structure makes sense Dmitry. > > Though, just a bit on naming here (I know, its not a big deal, and naming > is hard, haha): > > I think that naming the new parent exception something like "Throwable" or > "Catchable" (as Nikit

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Arvids Godjuks
2015-02-19 17:14 GMT+02:00 Pierre Joye : > On Thu, Feb 19, 2015 at 7:11 AM, Arvids Godjuks > wrote: > > > I think this starts to go the route of putting things into absolute. > Ideal > > things tend not to happen/work in the real world to the letter. > > > > Some things just don't work out by the

Re: [PHP-DEV] Re: [RFC] Exceptions in the engine

2015-02-19 Thread Patrick Schaaf
One question just popped up in my mind: what happens if there is a global error handler in place that rethrows errors as exceptions. I heard such a thing suggested pretty often. If not parse errors and other engine errors get thrown as exceptions and are unhandled as such, and that error handler th

Re: [PHP-DEV] [VOTE] Expectations

2015-02-19 Thread Dmitry Stogov
On Thu, Feb 19, 2015 at 6:00 PM, Pierre Joye wrote: > On Thu, Feb 19, 2015 at 1:09 AM, Joe Watkins > wrote: > > Morning internals, > > > > The expectations RFC is now in voting phase: > > https://wiki.php.net/rfc/expectations#vote > > I totally miss the Expectation RFC announcement. Where th

Re: [PHP-DEV] Re: [RFC] Exceptions in the engine

2015-02-19 Thread Trevor Suarez
I think that structure makes sense Dmitry. Though, just a bit on naming here (I know, its not a big deal, and naming is hard, haha): I think that naming the new parent exception something like "Throwable" or "Catchable" (as Nikita previously suggested) would be a bit more concise in meaning than

RE: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Zeev Suraski
> -Original Message- > From: Pierre Joye [mailto:pierre@gmail.com] > Sent: Thursday, February 19, 2015 4:52 PM > To: Zeev Suraski > Cc: PHP internals > Subject: Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations > v0.5) > > On Thu, Feb 19, 2015 at 6:33 AM, Zeev Suraski wr

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Pierre Joye
On Thu, Feb 19, 2015 at 7:11 AM, Arvids Godjuks wrote: > I think this starts to go the route of putting things into absolute. Ideal > things tend not to happen/work in the real world to the letter. > > Some things just don't work out by themselves. The Type Hinting RFC's are an > anomaly in the r

Re: [PHP-DEV] Re: [RFC] Exceptions in the engine

2015-02-19 Thread Dmitry Stogov
Hi Nikita, I refactored your implementation: https://github.com/php/php-src/pull/1095 I introduced a class hierarchy to minimize effect on existing code. cacth (Exception $e) won't catch new types of exceptions. BaseException (abstarct) +- EngineException +- ParaseException +- Exception

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Arvids Godjuks
2015-02-19 16:51 GMT+02:00 Pierre Joye : > On Thu, Feb 19, 2015 at 6:33 AM, Zeev Suraski wrote: > >> -Original Message- > >> From: Pierre Joye [mailto:pierre@gmail.com] > >> Sent: Thursday, February 19, 2015 4:09 PM > >> To: Zeev Suraski > >> Cc: Anthony Ferrara; PHP internals > >> Su

Re: [PHP-DEV] [VOTE] Expectations

2015-02-19 Thread Pierre Joye
On Thu, Feb 19, 2015 at 1:09 AM, Joe Watkins wrote: > Morning internals, > > The expectations RFC is now in voting phase: > https://wiki.php.net/rfc/expectations#vote I totally miss the Expectation RFC announcement. Where the RFC was actually proposed for discussions. I have been following u

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Pierre Joye
On Thu, Feb 19, 2015 at 6:33 AM, Zeev Suraski wrote: >> -Original Message- >> From: Pierre Joye [mailto:pierre@gmail.com] >> Sent: Thursday, February 19, 2015 4:09 PM >> To: Zeev Suraski >> Cc: Anthony Ferrara; PHP internals >> Subject: Re: [PHP-DEV] Using Other Channels (was Scalar Ty

Re: [PHP-DEV] [VOTE] Expectations

2015-02-19 Thread Markus Fischer
Hi, On 19.02.15 10:09, Joe Watkins wrote: > Morning internals, > > The expectations RFC is now in voting phase: > https://wiki.php.net/rfc/expectations#vote - I somehow miss information what the exact differences are to the current implementation, to better judge the impact. - how does zend

RE: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Zeev Suraski
> -Original Message- > From: Anthony Ferrara [mailto:ircmax...@gmail.com] > Sent: Thursday, February 19, 2015 4:24 PM > To: Zeev Suraski > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations > v0.5) > > Zeev, > > This topic has been discus

RE: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Zeev Suraski
> -Original Message- > From: Pierre Joye [mailto:pierre@gmail.com] > Sent: Thursday, February 19, 2015 4:09 PM > To: Zeev Suraski > Cc: Anthony Ferrara; PHP internals > Subject: Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations > v0.5) > > We have seen off list discussion

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Stanislav Malyshev
Hi! > So rather than go for the 70-75% consensus that we **know** we have, How we magically know that? We have the (unfinished) vote, which has a tiny bit over 66% for the proposal. Where 75% comes from? > Saying a problem doesn't exist doesn't make it go away. Except if it really doesn't exist

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Anthony Ferrara
Zeev, >> Then that's great! But let's find that out by voting rather than guessing, >> and >> rather than politicking. Let's let two competing proposals go head to >> head. > > I'd rather find out by first discussing the alternative, rather than just > moving ahead to a revote - especially a revot

RE: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Zeev Suraski
> -Original Message- > From: Anthony Ferrara [mailto:ircmax...@gmail.com] > Sent: Thursday, February 19, 2015 4:04 PM > To: Zeev Suraski > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations > v0.5) > > Zeev, > > That was a quote directly

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Pierre Joye
On Thu, Feb 19, 2015 at 5:52 AM, Zeev Suraski wrote: >> -Original Message- >> From: Anthony Ferrara [mailto:ircmax...@gmail.com] >> Sent: Thursday, February 19, 2015 3:24 PM >> To: franc...@php.net >> Cc: Lester Caine; internals@lists.php.net >> Subject: [PHP-DEV] Using Other Channels (was

Re: [PHP-DEV] [RFC-Discuss] Scalar Type Declarations v0.5

2015-02-19 Thread Dennis Birkholz
Hello Anthony, Am 19.02.2015 um 14:01 schrieb Anthony Ferrara: > I believe that RFCs should be opinionated. I dislike the recent trend > around having a lot of voting options as it only complicates things > for the voter. I just thought giving a vote on how to enable strict mode would enable a fe

Re: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Anthony Ferrara
Zeev, On Thu, Feb 19, 2015 at 8:52 AM, Zeev Suraski wrote: >> -Original Message- >> From: Anthony Ferrara [mailto:ircmax...@gmail.com] >> Sent: Thursday, February 19, 2015 3:24 PM >> To: franc...@php.net >> Cc: Lester Caine; internals@lists.php.net >> Subject: [PHP-DEV] Using Other Channe

RE: [PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Zeev Suraski
> -Original Message- > From: Anthony Ferrara [mailto:ircmax...@gmail.com] > Sent: Thursday, February 19, 2015 3:24 PM > To: franc...@php.net > Cc: Lester Caine; internals@lists.php.net > Subject: [PHP-DEV] Using Other Channels (was Scalar Type Declarations > v0.5) > > Let me quote something

[PHP-DEV] Re: (off topic) Array to string conversion (Was: Re: [PHP-DEV] Scalar Type Hints v0.4)

2015-02-19 Thread Patrick ALLAERT
2015-02-19 12:26 GMT+01:00 François Laupretre : > Hi Patrick, > > I know you didn’t decide it alone, but the right solution, IMO, would have > been to E_DEPRECATE nonsense conversions. That’s what we are currently doing > for ZPP conversions (https://wiki.php.net/rfc/zpp-conversion-rules). I also >

Re: [PHP-DEV] Digit separators for numeric literals

2015-02-19 Thread Michael Wallner
On 19/02/15 13:16, Nikita Nefedov wrote: > > Why not space? It's certainly possible (I just checked) and it would look > clear I guess: > > my_func(1 999 999); > Yes, but what if I just missed one or two commas there? ;) -- Regards, Mike -- PHP Internals - PHP Runtime Development Maili

Re: [PHP-DEV] Digit separators for numeric literals

2015-02-19 Thread Christoph Becker
Rasmus Lerdorf wrote: > On 02/18/2015 11:21 PM, Rick Widmer wrote: > >> how about: >> >> my_func( '1,000.04' ); //if you want to use separators there. > > The problem with that is that the world is split. The other half, or > actually more than half, would write that as '1.000,04'. There is no

[PHP-DEV] Using Other Channels (was Scalar Type Declarations v0.5)

2015-02-19 Thread Anthony Ferrara
Francois On Thu, Feb 19, 2015 at 6:58 AM, François Laupretre wrote: >> De : Lester Caine [mailto:les...@lsces.co.uk] >> >> On 19/02/15 04:44, Dennis Birkholz wrote: >> > I just saw the reddit where you mention that v0.4 is practically >> > abandoned now, so I will just renounce my previous mail!

[PHP-DEV] [RFC][DISCUSS] Continue output buffering despite aborted connection

2015-02-19 Thread Michael Wallner
Hi, I drafted an RFC to continue output buffering despite an aborted connection was detected. The title might well be a bit misleading, so please read the RFC before judgement. https://wiki.php.net/rfc/continue_ob -- Regards, Mike -- PHP Internals - PHP Runtime Development Mailing List To un

Re: [PHP-DEV] [RFC-Discuss] Scalar Type Declarations v0.5

2015-02-19 Thread Anthony Ferrara
Dennis, > Will you consider to let the people vote on how to enable strict mode > like discussed in the v0.4 discussion? Like this here from the "Reviving > scalar type hints" thread? I believe that RFCs should be opinionated. I dislike the recent trend around having a lot of voting options as it

RE: [PHP-DEV] Reviving scalar type hints

2015-02-19 Thread Zeev Suraski
> -Original Message- > From: Lester Caine [mailto:les...@lsces.co.uk] > Sent: Thursday, February 19, 2015 12:24 PM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] Reviving scalar type hints > > On 19/02/15 09:13, Zeev Suraski wrote: > > Obviously, I think 'weak' campers have a lot to

Re: [PHP-DEV] [RFC-Discuss] Scalar Type Declarations v0.5

2015-02-19 Thread Anthony Ferrara
Francois and Lester (and all), Please keep this thread on-topic. It should be for technical discussions around this RFC only. If you have something non-technical to discuss, please start a new topic. Thanks Anthony On Thu, Feb 19, 2015 at 6:58 AM, François Laupretre wrote: >> De : Lester Caine

RE: [PHP-DEV] Reviving scalar type hints

2015-02-19 Thread François Laupretre
Hi Lester, I didn't add restrictions specific to number representation in the draft ruleset yet, becausen while I think that's an important point, I didn't have time to study it in depth. I know you're an expert on this as you continuously (rightly) raised the point. So, can you elaborate on t

Re: [PHP-DEV] Scalar Type Hints v0.4

2015-02-19 Thread Patrick ALLAERT
Le Wed Feb 18 2015 at 19:10:08, François Laupretre a écrit : > > De : Patrick ALLAERT [mailto:patrickalla...@php.net] > > > > The biggest advantage, IMHO, is that you get the exact same result > whether > > you do: > > > > foo((int) $value); > > > > or: > > > > foo($value); > > > > ... wh

  1   2   >