[PHP-DEV] Fw: unpack()

2016-02-24 Thread Dmitry Stogov
From: Dmitry Stogov Sent: Wednesday, February 24, 2016 13:35 To: Hynek Bartoš; php-...@lists.php.net; php-general-h...@lists.php.net Subject: Re: unpack() Hi, I think the requested feature may be really useful. And the implementation is really simple https:

Re: [PHP-DEV] Re: [RFC] Deprecations for PHP 7.1

2016-02-24 Thread Yasuo Ohgaki
Hi Andrea, On Thu, Feb 25, 2016 at 10:00 AM, Andrea Faulds wrote: > Andrea Faulds wrote: >> >> Hi Yasuo, >> >> Yasuo Ohgaki wrote: >>> >>> This discussion is related to >>> >>> https://wiki.php.net/rfc/precise_float_value >>> >>> If you have comment on this, I appreciate it. >>> Please search old

Re: [PHP-DEV] Re: [RFC] Deprecations for PHP 7.1

2016-02-24 Thread Andrea Faulds
Hi again, Andrea Faulds wrote: Hi Yasuo, Yasuo Ohgaki wrote: This discussion is related to https://wiki.php.net/rfc/precise_float_value If you have comment on this, I appreciate it. Please search old thread for discussions. I'll start final RFC discussion for this when session RFC is finishe

[PHP-DEV] Account activation

2016-02-24 Thread Bronisław Białek
Hello! I would like to add RFC for Multicatch as a PHP wiki draft page. For now, RFC content is on github - https://github.com/bronek89/php-multicatch-rfc Can you please grant me the privileges to do so? My login on wiki: bronek -- Pozdrawiam, Bronisław Białek. -- PHP Internals - PHP Runtime D

Re: [PHP-DEV] [RFC] Deprecations for PHP 7.1

2016-02-24 Thread Rowan Collins
On 18/02/2016 22:45, Zeev Suraski wrote: >> I'm not sure about create_function() - while it is old, I don't see why >> we should break working code using it just because better option is >> available. > There's that, and there's the fact closures don't give you the same functionality - as Andrea

Re: [PHP-DEV] Re: PRNG: Raise warning and/or provide better pseudo random generator?

2016-02-24 Thread Yasuo Ohgaki
Hi all, On Thu, Feb 25, 2016 at 6:31 AM, Yasuo Ohgaki wrote: >> I think it would be preferable to wait a bit -- there's clearly interest in >> replacing rand/mt_rand etc with a higher quality PRNG, so maybe lets give >> people time to create a proposal for that before we start throwing warnings.

Re: [PHP-DEV] Re: [RFC] Traits with interfaces

2016-02-24 Thread Chase Peeler
On Wed, Feb 24, 2016 at 4:46 PM Kevin Gessner wrote: > On Tue, Feb 23, 2016 at 4:48 AM, Chris Riley wrote: > > > This isn't such a great idea as it will cause some of traits > functionality > > to be broken: I can currently use a trait and alias its methods and > change > > their visibility. If

Re: [PHP-DEV] Re: [RFC] Traits with interfaces

2016-02-24 Thread Kevin Gessner
On Tue, Feb 23, 2016 at 4:48 AM, Chris Riley wrote: > This isn't such a great idea as it will cause some of traits functionality > to be broken: I can currently use a trait and alias its methods and change > their visibility. If a trait implements an interface which is copied onto > my class I ca

Re: [PHP-DEV] Re: PRNG: Raise warning and/or provide better pseudo random generator?

2016-02-24 Thread Yasuo Ohgaki
Hi Nikita, On Wed, Feb 24, 2016 at 9:00 PM, Nikita Popov wrote: > On Wed, Feb 24, 2016 at 1:27 AM, Yasuo Ohgaki wrote: >> >> Hi all, >> >> On Tue, Feb 23, 2016 at 7:41 PM, Yasuo Ohgaki wrote: >> > Any comments for adding out of range warnings to rand()/mt_rand()? If >> > nobody has comment on t

Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-02-24 Thread Fleshgrinder
On 2/22/2016 9:12 PM, Stanislav Malyshev wrote: > Hi! Hey there. :) On 2/22/2016 9:12 PM, Stanislav Malyshev wrote: >> Old cellphones were shipped with a user manual that contained precise >> instructions on how to deal with the installed OS. > > You don't really need a whole manual to know two

Re: [PHP-DEV] Re: [RFC] Deprecations for PHP 7.1

2016-02-24 Thread Fleshgrinder
On 2/24/2016 2:11 AM, Andrea Faulds wrote: > Furthermore, if PHP developers find floating-point confusing and are > genuinely surprised that 0.1 cannot be represented in binary exactly, > then perhaps they should go and learn about what floating-point numbers > do, rather than naïvely continuing on

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

2016-02-24 Thread lp_benchmark_robot
Results for project PHP master, build date 2016-02-24 06:31:26+02:00 commit: 85ade00 previous commit:2d1559f revision date: 2016-02-23 18:18:34+01: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] Re: PRNG: Raise warning and/or provide better pseudo random generator?

2016-02-24 Thread Nikita Popov
On Wed, Feb 24, 2016 at 1:27 AM, Yasuo Ohgaki wrote: > Hi all, > > On Tue, Feb 23, 2016 at 7:41 PM, Yasuo Ohgaki wrote: > > Any comments for adding out of range warnings to rand()/mt_rand()? If > > nobody has comment on this, I'll write RFC for additional warnings. > > Anyone prefer to extend ra

Re: [PHP-DEV] Re: [RFC] Deprecations for PHP 7.1

2016-02-24 Thread Lester Caine
On 24/02/16 01:11, Andrea Faulds wrote: > Furthermore, if PHP developers find floating-point confusing and are > genuinely surprised that 0.1 cannot be represented in binary exactly, > then perhaps they should go and learn about what floating-point numbers > do, rather than naïvely continuing on th

Re: [PHP-DEV] Re: [RFC] Deprecations for PHP 7.1

2016-02-24 Thread Andrea Faulds
Hi, Andrea Faulds wrote: $ php -r 'var_dump(1.02, 1.01, 1.01 === 1.02);' float(1) float(1) bool(true) I missed this when proof-reading. The output is actually: php -r 'var_dump(1.02, 1.01, 1.01 === 1.

Re: [PHP-DEV] Re: [RFC] Deprecations for PHP 7.1

2016-02-24 Thread Andrea Faulds
Hi Yasuo, Yasuo Ohgaki wrote: This discussion is related to https://wiki.php.net/rfc/precise_float_value If you have comment on this, I appreciate it. Please search old thread for discussions. I'll start final RFC discussion for this when session RFC is finished. Thank you for bringing that