Re: [PHP-DEV] Voting period for Callable Prototypes RFC?

2016-06-02 Thread Joe Watkins
Morning, Nikita has clarified the voting period in the RFC, two weeks. Not quite done yet. Cheers Joe On Thu, Jun 2, 2016 at 1:16 AM, Sara Golemon wrote: > On Wed, Jun 1, 2016 at 5:07 PM, Stanislav Malyshev > wrote: > > The vote for https://wiki.php.net/rfc/callable-types started on

Re: [PHP-DEV] [RFC] Replace "Missing argument" warning with "Too few arguments" exception

2016-06-02 Thread Rowan Collins
On 02/06/2016 00:19, Aaron Piotrowski wrote: On Jun 1, 2016, at 3:56 PM, Rowan Collins wrote: On 01/06/2016 19:36, Aaron Piotrowski wrote: While this might be considered a BC break, I can't imagine there's an actual code out there relying on suppressing the warning just to call a function

[PHP-DEV] NEUTRAL Benchmark Results for PHP Master 2016-06-02

2016-06-02 Thread lp_benchmark_robot
Results for project PHP master, build date 2016-06-02 06:29:01+03:00 commit: 1b4946e previous commit:51b3be7 revision date: 2016-06-01 20:52:14+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] Replace "Missing argument" warning with "Too fewarguments" exception

2016-06-02 Thread Christoph Becker
On 02.06.2016 at 01:23, Stanislav Malyshev wrote: >> Please take a look into the proposal. >> >> >> https://wiki.php.net/rfc/too_few_args >> >> >> The RFC is extremely simple (both proposal and implementation) and almost >> completely described by the email subject. > > Looks fine to me. I don't

[PHP-DEV] [RFC] [PRE-VOTE] Union types

2016-06-02 Thread Bob Weinand
Hey all, I know, it has been quite some time … but it's still well in time for 7.1. Time to move on and put Union types to vote soon. [In the next 1-2 days] We have done some changes to the RFC to emphasize the appeal of union types as well as clarified what exactly we will vote on. If you hav

Re: [PHP-DEV] [RFC] Replace "Missing argument" warning with "Too few arguments" exception

2016-06-02 Thread Benjamin Eberlei
On Wed, Jun 1, 2016 at 12:55 PM, Dmitry Stogov wrote: > hi, > > > Please take a look into the proposal. > > > https://wiki.php.net/rfc/too_few_args > > > The RFC is extremely simple (both proposal and implementation) and almost > completely described by the email subject. > > I think, this mini-R

Re: [PHP-DEV] [RFC] Replace "Missing argument" warning with "Too few arguments" exception

2016-06-02 Thread Bob Weinand
> Am 01.06.2016 um 12:55 schrieb Dmitry Stogov : > > hi, > > > Please take a look into the proposal. > > > https://wiki.php.net/rfc/too_few_args > > > The RFC is extremely simple (both proposal and implementation) and almost > completely described by the email subject. > > I think, this m

Re: [PHP-DEV] [RFC] Replace "Missing argument" warning with "Too few arguments" exception

2016-06-02 Thread Dmitry Stogov
On 06/02/2016 02:42 PM, Benjamin Eberlei wrote: On Wed, Jun 1, 2016 at 12:55 PM, Dmitry Stogov > wrote: hi, Please take a look into the proposal. https://wiki.php.net/rfc/too_few_args The RFC is extremely simple (both proposal and implementation

Re: [PHP-DEV] [RFC] Replace "Missing argument" warning with "Too few arguments" exception

2016-06-02 Thread Dmitry Stogov
On 06/02/2016 03:01 PM, Bob Weinand wrote: Am 01.06.2016 um 12:55 schrieb Dmitry Stogov : hi, Please take a look into the proposal. https://wiki.php.net/rfc/too_few_args The RFC is extremely simple (both proposal and implementation) and almost completely described by the email subject.

Re: [PHP-DEV] [RFC] Replace "Missing argument" warning with "Too few arguments" exception

2016-06-02 Thread Bob Weinand
> Am 02.06.2016 um 14:11 schrieb Dmitry Stogov : > > > > On 06/02/2016 03:01 PM, Bob Weinand wrote: >>> Am 01.06.2016 um 12:55 schrieb Dmitry Stogov : >>> >>> hi, >>> >>> >>> Please take a look into the proposal. >>> >>> >>> https://wiki.php.net/rfc/too_few_args >>> >>> >>> The RFC is ex

Re: [PHP-DEV] [RFC] Libsodium - Discussion

2016-06-02 Thread Pierre Joye
hi Scott, On Wed, Jun 1, 2016 at 2:49 PM, Scott Arciszewski wrote: > Hi PHP Internals Team, > > Let's begin discussing the prospect of adding libsodium as a core extension > in PHP 7.1. I've updated the RFC to explain why this would be a good idea > and the benefits it offers. > > https://wiki.ph

Re: [PHP-DEV] [RFC] Libsodium - Discussion

2016-06-02 Thread Fleshgrinder
On 6/1/2016 9:46 PM, Ronald Chmara wrote: > Hi. > https://github.com/php/php-src/commit/aa203477bc24b1fadc16d65533c1749162260592 > was my commit, put together as a result of discussions on this list > (and sidebars). I can try to speak to it from memory. > >> Note that it also encourages this wei

[PHP-DEV] Re: [RFC] [PRE-VOTE] Union types

2016-06-02 Thread Andrea Faulds
Hi Bob, Bob Weinand wrote: Hey all, I know, it has been quite some time … but it's still well in time for 7.1. Time to move on and put Union types to vote soon. [In the next 1-2 days] We have done some changes to the RFC to emphasize the appeal of union types as well as clarified what exactl

Re: [PHP-DEV] Re: [RFC] [PRE-VOTE] Union types

2016-06-02 Thread Rowan Collins
On 02/06/2016 18:11, Andrea Faulds wrote: That aside, the behaviour the RFC now specifies for how weak typing interacts with union types is frighteningly complicated. I don't see how it could be anything other than that, but the new complexity this introduces to PHP is enough for me to vote again

Re: [PHP-DEV] [RFC] Libsodium - Discussion

2016-06-02 Thread Fleshgrinder
On 6/1/2016 9:25 PM, Niklas Keller wrote: > Why does it directly extend throwable? > > Just a short node: the keys shouldn't be responsible for signing / > verification. > This was not a real proposal, I only wanted to illustrate the potential for a nice OO implementation. The goal is it to mak

Re: [PHP-DEV] Re: [RFC] [PRE-VOTE] Union types

2016-06-02 Thread Bob Weinand
> Am 02.06.2016 um 19:11 schrieb Andrea Faulds : > > Hi Bob, > > Bob Weinand wrote: >> Hey all, >> >> I know, it has been quite some time … but it's still well in time for 7.1. >> >> Time to move on and put Union types to vote soon. [In the next 1-2 days] >> >> We have done some changes to th

Re: [PHP-DEV] Re: [RFC] [PRE-VOTE] Union types

2016-06-02 Thread Bob Weinand
> Am 02.06.2016 um 19:33 schrieb Rowan Collins : > > On 02/06/2016 18:11, Andrea Faulds wrote: >> That aside, the behaviour the RFC now specifies for how weak typing >> interacts with union types is frighteningly complicated. I don't see how >> it could be anything other than that, but the new co

Re: [PHP-DEV] Re: [RFC] [PRE-VOTE] Union types

2016-06-02 Thread Fleshgrinder
On 6/2/2016 7:37 PM, Bob Weinand wrote: > Hey, > > I think this is more of a presentation problem. > As you say, there's not much a better way to do that. > > It's basically our weak casting rules, just applied to the most lossless type > available. > It's out weak casting rules which are so com

Re: [PHP-DEV] [RFC] Libsodium - Discussion

2016-06-02 Thread Niklas Keller
2016-06-02 19:36 GMT+02:00 Fleshgrinder : > On 6/1/2016 9:25 PM, Niklas Keller wrote: > > Why does it directly extend throwable? > > > > Just a short node: the keys shouldn't be responsible for signing / > > verification. > > > > This was not a real proposal, I only wanted to illustrate the potent

Re: [PHP-DEV] Re: [RFC] [PRE-VOTE] Union types

2016-06-02 Thread Bob Weinand
> Am 02.06.2016 um 19:52 schrieb Fleshgrinder : > > On 6/2/2016 7:37 PM, Bob Weinand wrote: >> Hey, >> >> I think this is more of a presentation problem. >> As you say, there's not much a better way to do that. >> >> It's basically our weak casting rules, just applied to the most lossless >> t

Re: [PHP-DEV] Re: [RFC] [PRE-VOTE] Union types

2016-06-02 Thread Fleshgrinder
On 6/2/2016 8:45 PM, Bob Weinand wrote: > Done that, does it look better now? :-) > Absolutely in my opinion, looks much simpler now. :) > only if actually numeric, the result of $str + 0 Shouldn't we use is_numeric_string() here? -- Richard "Fleshgrinder" Fussenegger signature.asc Descrip

Re: [PHP-DEV] Re: [RFC] [PRE-VOTE] Union types

2016-06-02 Thread Bob Weinand
> Am 02.06.2016 um 20:53 schrieb Fleshgrinder : > > On 6/2/2016 8:45 PM, Bob Weinand wrote: >> Done that, does it look better now? :-) >> > > Absolutely in my opinion, looks much simpler now. :) > >> only if actually numeric, the result of $str + 0 > > Shouldn't we use is_numeric_string() her

Re: [PHP-DEV] Re: [RFC] [PRE-VOTE] Union types

2016-06-02 Thread Bob Weinand
> Am 02.06.2016 um 21:43 schrieb Fleshgrinder : > > On 6/2/2016 9:40 PM, Bob Weinand wrote: >> is_numeric() is returning a boolean (that's the condition). $str+0 does >> conditionally cast to int or float (whatever the string specifies). >> > > php -r 'var_dump("foo" + 0);' > int(0) > > Thi

Re: [PHP-DEV] Re: [RFC] [PRE-VOTE] Union types

2016-06-02 Thread Rowan Collins
On 02/06/2016 18:43, Bob Weinand wrote: We had that exact idea relatively early, but it exposes other problems… order suddenly matters. You cannot just add "a" type and get the expected results. E.g. function f(true | string $foo) { ... } everything except 0, ±0, "0" and "" would now return tr

Re: [PHP-DEV] Re: [RFC] [PRE-VOTE] Union types

2016-06-02 Thread Bob Weinand
> Am 02.06.2016 um 22:25 schrieb Rowan Collins : > > On 02/06/2016 18:43, Bob Weinand wrote: >> We had that exact idea relatively early, but it exposes other problems… >> order suddenly matters. You cannot just add "a" type and get the expected >> results. >> >> E.g. >> function f(true | strin

Re: [PHP-DEV] [RFC] Libsodium - Discussion

2016-06-02 Thread Scott Arciszewski
On Thu, Jun 2, 2016 at 2:10 PM, Niklas Keller wrote: > 2016-06-02 19:36 GMT+02:00 Fleshgrinder : > >> On 6/1/2016 9:25 PM, Niklas Keller wrote: >> > Why does it directly extend throwable? >> > >> > Just a short node: the keys shouldn't be responsible for signing / >> > verification. >> > >> >> Th

Re: [PHP-DEV] [RFC] [PRE-VOTE] Union types

2016-06-02 Thread Sara Golemon
On Thu, Jun 2, 2016 at 4:00 AM, Bob Weinand wrote: > I know, it has been quite some time … but it's still well in time for 7.1. > > Time to move on and put Union types to vote soon. [In the next 1-2 days] > > We have done some changes to the RFC to emphasize the appeal of union types > as well as

Re: [PHP-DEV] [RFC] [PRE-VOTE] Union types

2016-06-02 Thread Bob Weinand
> Am 03.06.2016 um 03:41 schrieb Sara Golemon : > >> On Thu, Jun 2, 2016 at 4:00 AM, Bob Weinand wrote: >> I know, it has been quite some time … but it's still well in time for 7.1. >> >> Time to move on and put Union types to vote soon. [In the next 1-2 days] >> >> We have done some changes t

[PHP-DEV] php.net SSL cert expired

2016-06-02 Thread Pascal Chevrel
Hi, FYI the php.net SSL certificate has expired : wiki.php.net uses an invalid security certificate. The certificate expired on 03/06/2016 01:59. The current time is 03/06/2016 04:48. Regards Pascal -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php