Re: [PHP-DEV] [RFC] Loop... or...

2014-09-20 Thread Patrick Schaaf
Am 21.09.2014 02:22 schrieb "Sara Golemon" : > > > It would also mean having to make { default block } into an > > expression... with a return value (to be allowed on either side of the > > boolean or) > > > Excellent point, a block only works with T_OR if it has a value. I'm > pretty sure that at

Re: [PHP-DEV] [VOTE][RFC] Integer Semantics

2014-09-20 Thread Pierre Joye
On Sep 21, 2014 10:48 AM, "Xinchen Hui" wrote: > > On Sun, Sep 21, 2014 at 11:33 AM, Pierre Joye wrote: > > Hi, > > On Sep 21, 2014 10:08 AM, "Xinchen Hui" wrote: > >> > >> On Sun, Sep 21, 2014 at 11:03 AM, Andrea Faulds wrote: > >> > > >> >> On 21 Sep 2014, at 03:52, Xinchen Hui wrote: > >> >

Re: [PHP-DEV] [VOTE][RFC] Integer Semantics

2014-09-20 Thread Xinchen Hui
On Sun, Sep 21, 2014 at 11:33 AM, Pierre Joye wrote: > Hi, > On Sep 21, 2014 10:08 AM, "Xinchen Hui" wrote: >> >> On Sun, Sep 21, 2014 at 11:03 AM, Andrea Faulds wrote: >> > >> >> On 21 Sep 2014, at 03:52, Xinchen Hui wrote: >> >> >> >> Hey: >> >> >> >> it should be closed tomorrow, not today.

Re: [PHP-DEV] [VOTE][RFC] Integer Semantics

2014-09-20 Thread Pierre Joye
Hi, On Sep 21, 2014 10:08 AM, "Xinchen Hui" wrote: > > On Sun, Sep 21, 2014 at 11:03 AM, Andrea Faulds wrote: > > > >> On 21 Sep 2014, at 03:52, Xinchen Hui wrote: > >> > >> Hey: > >> > >> it should be closed tomorrow, not today. > > > > It's the 21st in my timezone. I started the vote at 2am on

Re: [PHP-DEV] [VOTE][RFC] Integer Semantics

2014-09-20 Thread Xinchen Hui
On Sun, Sep 21, 2014 at 11:03 AM, Andrea Faulds wrote: > >> On 21 Sep 2014, at 03:52, Xinchen Hui wrote: >> >> Hey: >> >> it should be closed tomorrow, not today. > > It's the 21st in my timezone. I started the vote at 2am on the 14th and it's > now 4am on the 21st. I don't see a problem. the p

Re: [PHP-DEV] [VOTE][RFC] Integer Semantics

2014-09-20 Thread Andrea Faulds
> On 21 Sep 2014, at 03:52, Xinchen Hui wrote: > > Hey: > > it should be closed tomorrow, not today. It's the 21st in my timezone. I started the vote at 2am on the 14th and it's now 4am on the 21st. I don't see a problem. -- Andrea Faulds http://ajf.me/ -- PHP Internals - PHP Runtime Developm

Re: [PHP-DEV] [VOTE][RFC] Integer Semantics

2014-09-20 Thread Xinchen Hui
Hey: On Sun, Sep 21, 2014 at 7:17 AM, Andrea Faulds wrote: > > On 14 Sep 2014, at 23:23, Andrea Faulds wrote: > >> Good evening, >> >> This RFC has been put to a vote. It starts today (2014-09-14) and ends in a >> week’s time (2014-09-21). >> >> https://wiki.php.net/rfc/integer_semantics#vote >

Re: [PHP-DEV] Removing *.dsw *dsp files from php-src

2014-09-20 Thread Sara Golemon
On Sat, Sep 20, 2014 at 8:07 AM, Kalle Sommer Nielsen wrote: > 2014-09-20 10:13 GMT+02:00 Anatol Belski : >> this was already suggested at least once last year. But now with master >> this is pretty justified. >> >> In the light of the PdbProject presense, removing the *.dsw *.dsp files >> will si

Re: [PHP-DEV] [RFC] Loop... or...

2014-09-20 Thread Sara Golemon
On Sat, Sep 20, 2014 at 5:16 PM, Leigh wrote: > On 20 September 2014 23:06, Leigh wrote: >> >> Lots to think about here, if it's at all viable this will need it's >> own separate RFC, it's a much more invasive change, but definitely a >> great idea. > > NikiC and Bob have convinced me to carry on

Re: [PHP-DEV] Bug #68063: session-related, how to fix it?

2014-09-20 Thread Andrey Andreev
Hi, On Sun, Sep 21, 2014 at 3:12 AM, Tjerk Meesters wrote: > >> On 20 Sep, 2014, at 11:35 pm, Florian Margaine wrote: >> >> Hi list, >> >> I saw this interesting bug: https://bugs.php.net/bug.php?id=68063 >> >> Basically, if `session_id('')` is run before `session_start()`, weird >> things happe

Re: [PHP-DEV] [RFC] Loop... or...

2014-09-20 Thread Sara Golemon
On Sat, Sep 20, 2014 at 3:03 PM, Leigh wrote: > On 20 September 2014 20:47, Sara Golemon wrote: >> I like the general idea, but rather than explicitly focusing on the 'or' >> keyword, how about just giving all loop constructs (do/while/for/foreach) a >> return value? I'd suggest an integer ret

Re: [PHP-DEV] [RFC] Loop... or...

2014-09-20 Thread Leigh
On 20 September 2014 23:06, Leigh wrote: > > Lots to think about here, if it's at all viable this will need it's > own separate RFC, it's a much more invasive change, but definitely a > great idea. NikiC and Bob have convinced me to carry on with the original proposal, and bring up Saras ideas as

Re: [PHP-DEV] Bug #68063: session-related, how to fix it?

2014-09-20 Thread Tjerk Meesters
> On 20 Sep, 2014, at 11:35 pm, Florian Margaine wrote: > > Hi list, > > I saw this interesting bug: https://bugs.php.net/bug.php?id=68063 > > Basically, if `session_id('')` is run before `session_start()`, weird > things happen. > > The bug reporter proposes 2 ways to fix this: > > - `sessi

Re: [PHP-DEV] [VOTE][RFC] Integer Semantics

2014-09-20 Thread Andrea Faulds
On 14 Sep 2014, at 23:23, Andrea Faulds wrote: > Good evening, > > This RFC has been put to a vote. It starts today (2014-09-14) and ends in a > week’s time (2014-09-21). > > https://wiki.php.net/rfc/integer_semantics#vote > > Thanks! The vote has now closed. The result was 16:8 Yes:No, whi

Re: [PHP-DEV] [RFC] Loop... or...

2014-09-20 Thread Leigh
On 20 September 2014 20:47, Sara Golemon wrote: > > I like the general idea, but rather than explicitly focusing on the 'or' > keyword, how about just giving all loop constructs (do/while/for/foreach) a > return value? I'd suggest an integer return value indicating the number of > times the lo

Re: [PHP-DEV] [RFC] Loop... or...

2014-09-20 Thread Sara Golemon
> On Sep 19, 2014, at 14:56, Leigh wrote: > https://wiki.php.net/rfc/loop_or > I like the general idea, but rather than explicitly focusing on the 'or' keyword, how about just giving all loop constructs (do/while/for/foreach) a return value? I'd suggest an integer return value indicating the

Re: [PHP-DEV] [VOTE][RFC] Integer Semantics

2014-09-20 Thread Juan Basso
Why don't you throw an exception instead of returning random things that are not accurate? It makes the response of the operation or casts more realistic, since you will never get INF or NAN as result and possibly transform it to 0 unconsciously. It will keep the semantic for expected types, for e

Re: [PHP-DEV] [VOTE][RFC] Integer Semantics

2014-09-20 Thread Pascal MARTIN
On 15/09/2014 00:23, Andrea Faulds wrote: This RFC has been put to a vote. It starts today (2014-09-14) and ends in a week’s time (2014-09-21). https://wiki.php.net/rfc/integer_semantics#vote Hi, After discussing this RFC with other members of AFUP (French UG), we agree that improving cross

[PHP-DEV] begott...@stofanet.dk

2014-09-20 Thread Mads Lie Jensen
test -- Mads Lie Jensen m...@gartneriet.dk http://www.gartneriet.dk/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: [RFC] Loop... or...

2014-09-20 Thread Leigh
Updated RFC to include information about templating engines often emulating this behaviour for ease-of-use. Changed target version to be specifically PHP 7, so that it's clear that changes target the AST based compiler. (If there's ever a 5.next, we can consider that at the time) -- PHP Internal

Re: [PHP-DEV] [RFC] Loop... or...

2014-09-20 Thread Rowan Collins
On 20 September 2014 15:43:46 GMT+01:00, Leigh wrote: >On 20 September 2014 01:02, Rowan Collins >wrote: >> >> It seems like there are actually quite a number of special blocks you >> *could* define > >Some or all of these can be implemented (in other RFCs). > >However in order to avoid specifyin

[PHP-DEV] Bug #68063: session-related, how to fix it?

2014-09-20 Thread Florian Margaine
Hi list, I saw this interesting bug: https://bugs.php.net/bug.php?id=68063 Basically, if `session_id('')` is run before `session_start()`, weird things happen. The bug reporter proposes 2 ways to fix this: - `session_start()` should silently fix the situation - or `session_start()` should noise

Re: [PHP-DEV] Is it fair that people with no karma can vote on RFCs?

2014-09-20 Thread Peter Cowburn
On 20 September 2014 15:49, Leigh wrote: > On 20 September 2014 15:37, Johannes Schlüter > wrote: > > > > It is unclear what a "no" means. Might be a related to the patch the > > design, a misunderstanding or due to a critical issue ... in the end a > > vote creates "losers" with little feedbac

Re: [PHP-DEV] Removing *.dsw *dsp files from php-src

2014-09-20 Thread Kalle Sommer Nielsen
2014-09-20 10:13 GMT+02:00 Anatol Belski : > Hi, > > this was already suggested at least once last year. But now with master > this is pretty justified. > > In the light of the PdbProject presense, removing the *.dsw *.dsp files > will simplify things negating the need to update those on every chan

Re: [PHP-DEV] Is it fair that people with no karma can vote on RFCs?

2014-09-20 Thread Leigh
On 20 September 2014 15:37, Johannes Schlüter wrote: > > It is unclear what a "no" means. Might be a related to the patch the > design, a misunderstanding or due to a critical issue ... in the end a > vote creates "losers" with little feedback. > > But well, I'm saying this from day one of the vo

Re: [PHP-DEV] [RFC] Loop... or...

2014-09-20 Thread Leigh
On 20 September 2014 01:02, Rowan Collins wrote: > > It seems like there are actually quite a number of special blocks you > *could* define, such as: > > a) When the body is executed zero times (proposed "or" block) > b) When the body is executed exactly once (in a do...while loop, as > mentioned

Re: [PHP-DEV] Is it fair that people with no karma can vote on RFCs?

2014-09-20 Thread Johannes Schlüter
On Sat, 2014-09-20 at 03:16 +0100, Leigh wrote: > > I think everyone with the ability to vote should have to communicate > their reasons behind their yes/no publicly on this mailing list for it > to be valid. If you cannot describe in your own words why a proposal > should or should not be accepte

[PHP-DEV] VCS Account Request: leigh

2014-09-20 Thread Leigh T
Over the past 3 years I have made several small code and documentation contributions to the project. I do *not* want php-src commit access. I want to submit all of my contributions via pull request and have them double checked for sanity. I currently have two RFCs under discussion and would lik

Re: [PHP-DEV] Renaming type-hints to something else?

2014-09-20 Thread Levi Morrison
On Fri, Sep 19, 2014 at 7:58 AM, wrote: > Am 19.09.2014 15:21, schrieb Levi Morrison: >> >> Anyone else have an opinion they want to voice on this? > > What's about "Typed Arguments"? I am proposing return types which are not arguments, so that would be too narrow. -- PHP Internals - PHP Runti

Re: [PHP-DEV] Is it fair that people with no karma can vote on RFCs?

2014-09-20 Thread Andrea Faulds
> On 20 Sep 2014, at 13:54, Ferenc Kovacs wrote: > > Afair the voting rfc required previous contribution not just an existing > php.net account, but as I mentioned there are a bunch of ways to contribute > other than having commits in one of the repos so there is no easy way to > check that prog

Re: [PHP-DEV] Is it fair that people with no karma can vote on RFCs?

2014-09-20 Thread Ferenc Kovacs
2014.09.20. 14:14 ezt írta ("Pierre Joye" ): > > On Sep 20, 2014 7:07 PM, "Andrea Faulds" wrote: > > > > > > > On 20 Sep 2014, at 06:06, Pierre Joye wrote: > > > > > > I am not sure what brings you here but the idea of community votes was > one > > > of the top thing when we introduced the voting

Re: [PHP-DEV] Is it fair that people with no karma can vote on RFCs?

2014-09-20 Thread Pierre Joye
On Sep 20, 2014 7:07 PM, "Andrea Faulds" wrote: > > > > On 20 Sep 2014, at 06:06, Pierre Joye wrote: > > > > I am not sure what brings you here but the idea of community votes was one > > of the top thing when we introduced the voting RFC. > > I should've made clear I'm not opposed to community r

Re: [PHP-DEV] Is it fair that people with no karma can vote on RFCs?

2014-09-20 Thread Andrea Faulds
> On 20 Sep 2014, at 06:06, Pierre Joye wrote: > > I am not sure what brings you here but the idea of community votes was one > of the top thing when we introduced the voting RFC. I should've made clear I'm not opposed to community reps voting either. People who have made enough contributions

Re: [PHP-DEV] Is it fair that people with no karma can vote on RFCs?

2014-09-20 Thread Rowan Collins
On 20/09/2014 10:17, Lester Caine wrote: That most of my spare time is still being taken up living with the consequences of changes in PHP is water under the bridge now [...] PLEASE can we get back to a level playing field and use PHP7 as a base to get something stable and fully compatible with m

Re: [PHP-DEV] [VOTE][RFC] Null Coalesce Operator

2014-09-20 Thread Nikita Popov
On Sat, Sep 20, 2014 at 9:40 AM, Patrick Schaaf wrote: > Am 20.09.2014 01:35 schrieb "Andrea Faulds" : > > > > https://wiki.php.net/rfc/isset_ternary#vote > > Hi, > > got a question after being bitten my the issue yesterday in the context of > the "@yadda ?: 'default'" form yesterday: > > What ab

Re: [PHP-DEV] Is it fair that people with no karma can vote on RFCs?

2014-09-20 Thread Lester Caine
On 20/09/14 02:29, Andrea Faulds wrote: > I’d never suggest people without internals karma can’t vote. I think doc and > peck contributors are as valued as any other contributors. However, people > with no karma whatsoever (a blank people.php.net page) voting irks me. > > Thoughts? OK ... I am

[PHP-DEV] Re: [PHP-CVS] com php-src: fix CG(empty_string) init in ZTS: Zend/zend.c

2014-09-20 Thread Anatol Belski
Hi Dmitry, On Fri, September 19, 2014 12:43, Dmitry Stogov wrote: > I know :) > Interned strings in PHP5 were implemented as characters allocated in one > single buffer. Adding new strings into this buffer from different threads > would require synchronization (locks). > > In PHP7 this implementat

[PHP-DEV] Removing *.dsw *dsp files from php-src

2014-09-20 Thread Anatol Belski
Hi, this was already suggested at least once last year. But now with master this is pretty justified. In the light of the PdbProject presense, removing the *.dsw *.dsp files will simplify things negating the need to update those on every change. Also, those files are in VS2005 format, but master

Re: [PHP-DEV] [VOTE][RFC] Null Coalesce Operator

2014-09-20 Thread Patrick Schaaf
Am 20.09.2014 01:35 schrieb "Andrea Faulds" : > > https://wiki.php.net/rfc/isset_ternary#vote Hi, got a question after being bitten my the issue yesterday in the context of the "@yadda ?: 'default'" form yesterday: What about yadda that results, at the moment, in fatal errors?? Things like stati