Re: PHP_SESSION_* constant values

From: Date: Sat, 28 Jan 2012 21:18:29 +0000
Subject: Re: PHP_SESSION_* constant values
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-57546@lists.php.net to get a copy of this message
On Sat, Jan 28, 2012 at 9:14 PM, Sanford Whiteman <swhitemanlistens-software@cypressintegrated.com> wrote: >> I believe comparing the value against a constant, is always more >> readable than wondering what "truthy" means. if(session_status() === >> PHP_SESSION_ACTIVE) is much self-documenting than the proposed change. > > ...  also  an  obvious  BC  break  for anyone who was using the values > instead  of the constants before. Not that anyone should ever do this, > but  the  change  presupposes  that  people *do* use the values, so it > basically  contradicts  its  own  acceptability  as  it  is a breaking > change! There is no BC change here as session_status() has been added in the 5_4 branch as far as i can tell. > > -- S. > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.internals (#57546) next »