Re: PHP_SESSION_* constant values

From: Date: Sat, 28 Jan 2012 21:14:16 +0000
Subject: Re: PHP_SESSION_* constant values
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-57545@lists.php.net to get a copy of this message
> 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! -- S.

« previous php.internals (#57545) next »