Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57546 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51462 invoked from network); 28 Jan 2012 21:18:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2012 21:18:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=dragoonis@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dragoonis@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: dragoonis@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:47013] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C2/C3-09011-A26642F4 for ; Sat, 28 Jan 2012 16:18:34 -0500 Received: by qcsr14 with SMTP id r14so1512763qcs.29 for ; Sat, 28 Jan 2012 13:18:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Te4Go/zb4SwWQKYNwbtXKBub6YsGA0WrgYGaqG5/ZXU=; b=Z8GuEV376WQ9/elfT6x9z0w5iccJqpwNTXzy5JFvnr1r0sF+7SLGOoBb1t0Dq7dGCx anZYOgjpa4ogSIPL7+vah+AvHjLM4inIoAXO2/Pm9JhhvkLhjrkn6sZo19HNFjpLwbG4 y9xEOCp/b72zN+OsbC4A6LR9J8aLH7H14sOt0= MIME-Version: 1.0 Received: by 10.229.78.150 with SMTP id l22mr4417031qck.131.1327785510047; Sat, 28 Jan 2012 13:18:30 -0800 (PST) Received: by 10.229.242.1 with HTTP; Sat, 28 Jan 2012 13:18:29 -0800 (PST) In-Reply-To: <824242353.20120128161416@figureone.com> References: <824242353.20120128161416@figureone.com> Date: Sat, 28 Jan 2012 21:18:29 +0000 Message-ID: To: Sanford Whiteman Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP_SESSION_* constant values From: dragoonis@gmail.com (Paul Dragoonis) On Sat, Jan 28, 2012 at 9:14 PM, Sanford Whiteman wrote: >> I believe comparing the value against a constant, is always more >> readable than wondering what "truthy" means. if(session_status() =3D=3D= =3D >> PHP_SESSION_ACTIVE) is much self-documenting than the proposed change. > > ... =A0also =A0an =A0obvious =A0BC =A0break =A0for anyone who was using t= he values > instead =A0of the constants before. Not that anyone should ever do this, > but =A0the =A0change =A0presupposes =A0that =A0people *do* use the values= , so it > basically =A0contradicts =A0its =A0own =A0acceptability =A0as =A0it =A0is= 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 >