On Sat, Jan 28, 2012 at 9:14 PM, Sanford Whiteman <swhitemanlistens-softw...@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 > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php