Re: [PHP-DEV] RFC Proposal: Maybe monad and execution time polymorphic methods

2016-03-28 Thread Facundo Martinez Correa
Hi Stanislav, Yes, as you are saying, it is no easy task. I believe it would make a nice feature, though. I don't know it is really necessary to use union types, I believe that with a class hierarchy would suffice. But maybe there is something that I'm not looking at right, and the unions are

Re: [PHP-DEV] RFC Proposal: Maybe monad and execution time polymorphic methods

2016-03-28 Thread Facundo Martinez Correa
Hi Jakub, Regarding the Null Object, I believe it to be a second hand solution. Having a Null Object that returns 0, null, "" or false for every method call, or a nil that acts as in Objective C that doesn't tell you when is being poked the wrong way is the first step into madness. It will never

Re: [PHP-DEV] RFC Proposal: Maybe monad and execution time polymorphic methods

2016-03-28 Thread Stanislav Malyshev
Hi! > maybe PHP can. Maybe PHP will give me the polymorphism at execution time to > discern an empty Maybe from the one that is not. So I don't have to check In order for that to work, we should have a facility to: a) define union types b) ensure somehow that code dealing with the union type

Re: [PHP-DEV] Handling "Bad file descriptor" during stream_select()

2016-03-28 Thread Grzegorz Zdanowski
2016-03-28 11:19 GMT-05:00 Dan Ackroyd : > On 28 March 2016 at 02:57, Grzegorz Zdanowski wrote: >> by „gone away“ >> I mean some underlying error like forceful close of FD and not a >> standard disconnection >> of the client. > > What problem

Re: [PHP-DEV] Handling "Bad file descriptor" during stream_select()

2016-03-28 Thread Dan Ackroyd
On 28 March 2016 at 02:57, Grzegorz Zdanowski wrote: > Hello! > > by „gone away“ > I mean some underlying error like forceful close of FD and not a > standard disconnection > of the client. What problem exactly are you trying to solve, and do you have a way of showing the

Re: [PHP-DEV] crypt_blowfish salt padding

2016-03-28 Thread Solar Designer
Hi Pierre, On Mon, Mar 28, 2016 at 02:22:13PM +0700, Pierre Joye wrote: > On Sun, Mar 27, 2016 at 10:16 PM, Solar Designer wrote: > > $ git show 03315d9625dc87515f1dfbf1cc7d53c4451b5ec9 | fgrep -i hack > > + if (tmp == '$') break; /* PHP hack */ \ > > + while

Re: [PHP-DEV] [RFC][Discussion] Precise session data management

2016-03-28 Thread Chris Riley
You are right, perhaps this should be controlled simply by an ini flag: session https only. On Mon, 28 Mar 2016, 01:09 Stanislav Malyshev, wrote: > Hi! > > >> Could we also add HTTPS detection and enable the secure flag by default > >> when a session is established on an

[PHP-DEV] NEUTRAL Benchmark Results for PHP Master 2016-03-28

2016-03-28 Thread lp_benchmark_robot
Results for project PHP master, build date 2016-03-28 06:38:58+03:00 commit: a3f0add previous commit:454ae8a revision date: 2016-03-27 06:51:03+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] crypt_blowfish salt padding

2016-03-28 Thread Pierre Joye
Hi Alexander, On Sun, Mar 27, 2016 at 10:16 PM, Solar Designer wrote: > Hi, > > This commit: > > commit 03315d9625dc87515f1dfbf1cc7d53c4451b5ec9 > Author: Pierre Joye > Date: Mon Jul 18 21:26:29 2011 + > > - update blowfish to 1.2 (Solar Designer) >

Re: [PHP-DEV] RFC Proposal: Maybe monad and execution time polymorphic methods

2016-03-28 Thread Kubo2
Hi Facundo Martínez, I think the best solution to yourself described problem above would be the Null Object Design Pattern (https://en.wikipedia.org/wiki/Null_Object_pattern). In my opinion, NULL belongs to PHP and this language never aimed to become Java or similar. Jakub On 22 March 2016 at