[PHP-DEV] GOOD Benchmark Results for PHP Master 2017-06-07

2017-06-08 Thread lp_benchmark_robot
Results for project PHP master, build date 2017-06-07 19:23:43-07:00 commit: eb6614e previous commit:5f05527 revision date: 2017-06-07 23:44:23+02: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] [RFC]Discuss] Syntax for Arrow Functions

2017-06-08 Thread Sara Golemon
On Thu, Jun 8, 2017 at 4:56 PM, Björn Larsson wrote: > You have a good point here! I think one then should evaluate > both the implementation, which apparently is not so great and > how the feature itself has been received. > > I mean is it heavily used and what is the

Re: [PHP-DEV] [RFC]Discuss] Syntax for Arrow Functions

2017-06-08 Thread Björn Larsson
Den 2017-06-08 kl. 19:21, skrev Fleshgrinder: On 6/8/2017 6:28 PM, Rasmus Schultz wrote: it could be a single symbol instead of two even if this can be done without parser ambiguity, it suffers from visual ambiguity with the assignment operator. consider what this would look like if the

Re: [PHP-DEV] [RFC]Discuss] Syntax for Arrow Functions

2017-06-08 Thread Björn Larsson
Den 2017-06-08 kl. 15:34, skrev Rowan Collins: On 08/06/2017 13:33, Björn Larsson wrote: One reason (not the only one) for me to advocate ==> syntax is that it's the same syntax as HACK I'm not a fan of this logic. Using Hack as a kind of prototyping-ground for PHP features is fine, but

[PHP-DEV] PHP 7.1.6 Released

2017-06-08 Thread Joe Watkins
Evening, The PHP development team announces the immediate availability of PHP 7.1.6, several bugs have been fixed. All PHP 7.1 users are encouraged to upgrade. For source downloads please visit: http://www.php.net/downloads.php Windows binaries can be found: http://windows.php.net/download The

Re: [PHP-DEV] PHP 7.2.0 Alpha 1 Released

2017-06-08 Thread Sara Golemon
On Thu, Jun 8, 2017 at 2:01 PM, David Rodrigues wrote: > 2017-06-08 8:21 GMT-03:00 Sara Golemon : >> >> The first alpha for 7.2.0 was just released and can be downloaded >> from: https://downloads.php.net/~pollita/ >> Or using the git tag: php-7.2.0alpha1

Re: [PHP-DEV] PHP 7.2.0 Alpha 1 Released

2017-06-08 Thread David Rodrigues
No updates on changelog for now? 2017-06-08 8:21 GMT-03:00 Sara Golemon : > The first alpha for 7.2.0 was just released and can be downloaded > from: https://downloads.php.net/~pollita/ > Or using the git tag: php-7.2.0alpha1 > > The Windows binaries are available at:

Re: [PHP-DEV] [RFC]Discuss] Syntax for Arrow Functions

2017-06-08 Thread Fleshgrinder
On 6/8/2017 6:28 PM, Rasmus Schultz wrote: >> it could be a single symbol instead of two > > even if this can be done without parser ambiguity, it suffers from visual > ambiguity with the assignment operator. > > consider what this would look like if the expression itself uses the > assignment

Re: [PHP-DEV] [RFC]Discuss] Syntax for Arrow Functions

2017-06-08 Thread Rasmus Schultz
> it could be a single symbol instead of two even if this can be done without parser ambiguity, it suffers from visual ambiguity with the assignment operator. consider what this would look like if the expression itself uses the assignment operator... f($x) = $y = $y + $x; versus something

Re: [PHP-DEV] [RFC]Discuss] Syntax for Arrow Functions

2017-06-08 Thread Sara Golemon
On Thu, Jun 8, 2017 at 9:34 AM, Rowan Collins wrote: > On 08/06/2017 13:33, Björn Larsson wrote: >> >> One reason >> (not the only one) for me to advocate ==> syntax is that it's the >> same syntax as HACK > > > I'm not a fan of this logic. Using Hack as a kind of

Re: [PHP-DEV] [RFC]Discuss] Syntax for Arrow Functions

2017-06-08 Thread Fleshgrinder
On 6/7/2017 9:45 PM, Rasmus Schultz wrote: >> the `fn($a, $b) => $a + $b ** $c` syntax suddenly becomes an acceptable > compromise. > > I have to second that. > > I might even propose to shorten it from "fn" to just "f" - the resulting > syntax then resembles a mathematical predicate :-) > I

Re: [PHP-DEV] [RFC]Discuss] Syntax for Arrow Functions

2017-06-08 Thread Rowan Collins
On 08/06/2017 13:33, Björn Larsson wrote: One reason (not the only one) for me to advocate ==> syntax is that it's the same syntax as HACK I'm not a fan of this logic. Using Hack as a kind of prototyping-ground for PHP features is fine, but since they don't have the same decision-making

Re: [PHP-DEV] [RFC]Discuss] Syntax for Arrow Functions

2017-06-08 Thread Björn Larsson
Den 2017-06-07 kl. 17:20, skrev Stephen Reay: On 7 Jun 2017, at 20:37, Björn Larsson wrote: Well, one reason to use fn or even lambda was to signal that this is different then a regular function. When it comes to number of keystrokes I guess that some inspiration

[PHP-DEV] PHP 7.0.20 is available

2017-06-08 Thread Anatol Belski
Hi, The PHP development team announces the immediate availability of PHP 7.0.20. Several bugs have been fixed. All PHP 7.0 users are encouraged to upgrade to this version. For source downloads of PHP 7.0.20 please visit our downloads page: http://www.php.net/downloads.php Windows binaries

[PHP-DEV] PHP 7.2.0 Alpha 1 Released

2017-06-08 Thread Sara Golemon
The first alpha for 7.2.0 was just released and can be downloaded from: https://downloads.php.net/~pollita/ Or using the git tag: php-7.2.0alpha1 The Windows binaries are available at: http://windows.php.net/qa/ Please test it carefully, and report any bugs in the bug system. The next release

Re: [PHP-DEV] Re: [RFC] [VOTE] Arrays starting with a negative index

2017-06-08 Thread François Laupretre
Hi Pedro, Le 07/06/2017 à 20:23, Pedro Magalhães a écrit : I will not change the target version now during the voting phase. Also because it wouldn't make sense to vote for a feature for 8.0 yet. If the RFC is rejected and the sentiment is that most people would agree with the change but not

Re: [PHP-DEV] preg_match() option for anchored offset?

2017-06-08 Thread Rasmus Schultz
> You are looking for the \G anchor or the A modifier. Both of these options work great! I've submitted a patch to the manual page with a note explaining these options. Thanks :-) On Wed, Jun 7, 2017 at 10:13 PM, Nikita Popov wrote: > On Wed, Jun 7, 2017 at 10:03 PM,