[PHP-DEV] DateInterval and ISO 8601

2017-06-21 Thread David Rodrigues
As mentioned on doc (http://php.net/manual/en/dateinterval.construct.php) the format is based on ISO 8601 ( https://en.wikipedia.org/wiki/ISO_8601#Durations), but it doesn't respects, for instance, decimal values. There are some reason for that? This bug was related on 2011 and we have not update

[PHP-DEV] NEUTRAL Benchmark Results for PHP Master 2017-06-20

2017-06-21 Thread lp_benchmark_robot
Results for project PHP master, build date 2017-06-20 19:23:39-07:00 commit: 7802cf8 previous commit:c18ba68 revision date: 2017-06-20 23:25:09+03: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] Unary null coalescing operator

2017-06-21 Thread Stanislav Malyshev
Hi! > I think that `if ($_GET['x']?? === 1)` looks and feels a lot like `if > (@$_GET['x'] === 1)`... > > Yes, the latter has runtime performance issues and will still send > notices to error handlers and logs. But perhaps if we're going to > extend syntax, the syntax could be something along t

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

2017-06-21 Thread Pedro Magalhães
On Wed, Jun 21, 2017 at 11:19 PM, Rowan Collins wrote: > > The short form is still constrained to be a single expression, because > otherwise you can't omit the "return" statement; For the sake of discussion, Groovy has optional returns where the last evaluated expression in a closure is returne

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

2017-06-21 Thread Rowan Collins
On 21/06/2017 15:04, Rasmus Schultz wrote: > > For me (and I am not alone), this feature is NOT a new syntax for closures > > Regardless of why you want it, that's exactly what it is though - another way to declare a closure. > > Even if it has different semantics, the resulting object is stil

Re: [PHP-DEV] [RFC] Unary null coalescing operator

2017-06-21 Thread Sara Golemon
On Wed, Jun 21, 2017 at 4:15 PM, Andrea Faulds wrote: >> The double @@ could indicate "No, really, don't send any kind of >> warning (or lower) anywhere. Just deal with it. And as a bonus, the >> @@ syntax is valid in older PHPs (acting like a single @). > > I'm not entirely sure if you're troll

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

2017-06-21 Thread Rasmus Schultz
> Once you start getting into multi statement closures, all the weird syntax elements that are being proposed just make it harder to read and harder to visually parse. The same is true for current function syntax. But that's what line-breaks are for :-) > Automatically importing variables isn’t “

Re: [PHP-DEV] [RFC] Unary null coalescing operator

2017-06-21 Thread Andrea Faulds
Hi Sara, Sara Golemon wrote: On Wed, Jun 21, 2017 at 1:05 PM, Andrea Faulds wrote: Here's a small RFC for a small feature, which I've wondered about for a while: https://wiki.php.net/rfc/unary_null_coalescing_operator What do you think of it? I think that `if ($_GET['x']?? === 1)` looks an

Re: [PHP-DEV] [RFC] Unary null coalescing operator

2017-06-21 Thread Sara Golemon
On Wed, Jun 21, 2017 at 1:05 PM, Andrea Faulds wrote: > Here's a small RFC for a small feature, which I've wondered about for a > while: https://wiki.php.net/rfc/unary_null_coalescing_operator > > What do you think of it? > I think that `if ($_GET['x']?? === 1)` looks and feels a lot like `if (@$

Re: [PHP-DEV] [RFC] Unary null coalescing operator

2017-06-21 Thread Fleshgrinder
On 6/21/2017 7:05 PM, Andrea Faulds wrote: > Hi all, > > Here's a small RFC for a small feature, which I've wondered about for a > while: https://wiki.php.net/rfc/unary_null_coalescing_operator > > What do you think of it? > > Thanks! I would prefer [1] to be extended to any and everything that

[PHP-DEV] [RFC] Unary null coalescing operator

2017-06-21 Thread Andrea Faulds
Hi all, Here's a small RFC for a small feature, which I've wondered about for a while: https://wiki.php.net/rfc/unary_null_coalescing_operator What do you think of it? Thanks! -- Andrea Faulds https://ajf.me/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http

Re: [PHP-DEV] [RFC] [Vote] Doxygen

2017-06-21 Thread Fleshgrinder
On 6/21/2017 5:38 PM, Nikita Popov wrote: > Can you please clarify where functions that are declared in a header and > defined in a source file should be documented? I believe the usual > recommendation is to document in the source file, because it's closer to > the implementation and thus more lik

Re: [PHP-DEV] [RFC] [Vote] Doxygen

2017-06-21 Thread Nikita Popov
On Sat, Jun 17, 2017 at 9:53 AM, Fleshgrinder wrote: > Hi! > > I started voting on the Doxygen RFC: > > https://wiki.php.net/rfc/doxygen > > -- > Richard "Fleshgrinder" Fussenegge > Can you please clarify where functions that are declared in a header and defined in a source file should be docume

Re: [PHP-DEV] [RFC] [Vote] Doxygen

2017-06-21 Thread Fleshgrinder
On 6/21/2017 4:13 AM, Christopher Jones wrote: > > On 17/6/17 5:53 pm, Fleshgrinder wrote: >> Hi! >> >> I started voting on the Doxygen RFC: >> >> https://wiki.php.net/rfc/doxygen >> > Did I miss seeing when the vote ends? > > Chris > You did not, I forgot to mention it. The vote will close on

Re: [PHP-DEV] [RFC] [Vote] Doxygen

2017-06-21 Thread Fleshgrinder
On 6/19/2017 2:31 PM, Jakub Zelenka wrote: > On Sat, Jun 17, 2017 at 8:53 AM, Fleshgrinder wrote: > >> Hi! >> >> I started voting on the Doxygen RFC: >> >> https://wiki.php.net/rfc/doxygen >> >> > I just wanted to send my feedback and the reason why I voted "yes". First > of all I don't really li

[PHP-DEV] [RFC][VOTE] Add support for stream-wrapped URLs in opcode cache

2017-06-21 Thread François Laupretre
Hi, The message I sent to announce the vote didn't start a new thread. So, here is another one. Opening vote for :https://wiki.php.net/rfc/url-opcode-cache Voting period will end Monday, July 3, 2017, 00:00 UTC. Regards François -- PHP Internals - PHP Runtime Development Mailing List To

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

2017-06-21 Thread Rasmus Schultz
> For me (and I am not alone), this feature is NOT a new syntax for closures Regardless of why you want it, that's exactly what it is though - another way to declare a closure. Even if it has different semantics, the resulting object is still an instance of Closure, right? It should pass type-ch

RE: [PHP-DEV] Missing commits in 7.0 branch

2017-06-21 Thread Anatol Belski
Hi Stas, > -Original Message- > From: Stanislav Malyshev [mailto:smalys...@gmail.com] > Sent: Tuesday, June 20, 2017 10:33 PM > To: Johannes Schlüter ; PHP Internals > ; Anatol Belski > Subject: Re: [PHP-DEV] Missing commits in 7.0 branch > > Hi! > > > From the history it looks like you

Re: [PHP-DEV] [RFC][VOTE] Add support for stream-wrapped URLs in opcode cache

2017-06-21 Thread Andrey Andreev
Hi, On Mon, Jun 19, 2017 at 9:12 PM, François Laupretre wrote: > Hi, > > Opening vote for : https://wiki.php.net/rfc/url-opcode-cache > > Voting period will end Monday, July 3, 2017, 00:00 UTC. > You should start a new thread to announce the vote start, or people not actively engaged in the (alr

Re: [PHP-DEV] PDO ODBC #42765 uninitialized length bug patch

2017-06-21 Thread Christoph M. Becker
On 21.06.2017 at 05:33, Anish Mistry wrote: > PDO ODBC #42765 uninitialized length bug patch > https://bugs.php.net/bug.php?id=42765 > > Any takers? Would we be able to get this patch committed? It's a > pretty straight forward fix. While the patch still looks good to me, I have no environment

[PHP-DEV] PHP versions and extensions versions

2017-06-21 Thread Jean-Baptiste Aviat
Hello dear PHP internals! I’m looking for information about the PHP version (e.g. 7.1) versus the API version (e.g. 320160303). The best way I found is to dig through the git history of this file: Zend/zend_extensions.h For older versions I’ve found this nice doc, but it isn’t up to date: htt