Re: [RFC] unset(): return bool if the variable has existed

From: Date: Wed, 06 Mar 2013 21:42:58 +0000
Subject: Re: [RFC] unset(): return bool if the variable has existed
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-66508@lists.php.net to get a copy of this message
On Wed, Mar 6, 2013 at 4:40 PM, Ferenc Kovacs <tyra3l@gmail.com> wrote:

> On Wed, Mar 6, 2013 at 10:38 PM, Ferenc Kovacs <tyra3l@gmail.com> wrote:
>
> >
> >
> >
> > On Wed, Mar 6, 2013 at 10:10 PM, Bob Weinand <bobwei9@hotmail.com>
> wrote:
> >
> >> Hi!
> >>
> >> As this seem to require a RFC, here is it:
> >>
> >> https://wiki.php.net/rfc/unset_bool
> >>
> >> Please feedback,
> >>
> >> Bob Weinand
> >>
> >> --
> >> PHP Internals - PHP Runtime Development Mailing List
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> > unset is not a function, but a language construct, and there is at least
> > one similar construct which doesn't return anything (eg. not returning
> > NULL, but syntax error when used in a return context): echo
> >
> >
> referring to "This removes also an inconsistency: the function's return
> value is void, states the docs. It is until now the only function which has
> no return value." especially.
>

Agreed.  The RFC needs to be updated as to not mislead readers.


>
> --
> Ferenc Kovács
> @Tyr43l - http://tyrael.hu
>


Thread (21 messages)

« previous php.internals (#66508) next »