Re: [RFC] Safe Casting Functions

From: Date: Wed, 19 Nov 2014 03:02:42 +0000
Subject: Re: [RFC] Safe Casting Functions
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-78977@lists.php.net to get a copy of this message
Hi Andrea, On Tue, Oct 21, 2014 at 7:57 AM, Andrea Faulds <ajf@ajf.me> wrote: > I am presenting a new RFC to add a set of three functions to do validated > casts for scalar types: > > https://wiki.php.net/rfc/safe_cast > I like this RFC overall. Precise parameter checks is good for security always. I would like to have DbC to harden app security as well. I'm looking for something like D language. http://dlang.org/contracts.html With DbC, checking parameter types/range/etc happen only when development. Therefore, app runs faster for production. All of runtime checks cannot be removed from app code by DbC, so this RFC is nice to have even with DbC. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#78977) next »