Re: Function boolval()

From: Date: Fri, 27 Apr 2012 20:22:06 +0000
Subject: Re: Function boolval()
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 27-04-12 22:19, Kris Craig wrote:
On Fri, Apr 27, 2012 at 1:14 PM, Jille Timmermans <[email protected]
    Hi,
    I suggest we add a function boolval(). It simply converts the given
    argument to a boolean, like strval(), intval() and floatval(). I
    already have an implementation ready[1].
    Why?
    * It is missing in the current list of *val()-functions and people
    expect it to exist. I'd say it is an inconsistency.
    * It can be used as a callback, which is why a bool-cast does not
    suffice.
    -- Jille
    [1] https://github.com/php/php-__src/pull/60
Do you have wiki access? If so, please post an RFC for this! You'd have my vote. =) I don't. If anyone can give it to me I will post an RFC :)
-- Jille

Thread (8 messages)

« previous php.internals (#60340) next »