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

From: Date: Wed, 06 Mar 2013 23:32:44 +0000
Subject: Re: [RFC] unset(): return bool if the variable has existed
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-66514@lists.php.net to get a copy of this message
Hi! > RFC updated. > > Any other comments about this RFC? Could you provide a use case for this - which practical value this has? It also still contains factually incorrect claim that unset() is a function and that there's some "inconsistency" in the fact that it does not return value. Also, it is not clear what false returned from unset() actually means - did it fail to unset the value (i.e., it is still set) or there was nothing to unset (i.e., it is still not set)? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#66514) next »