Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42989 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33481 invoked from network); 10 Feb 2009 19:09:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Feb 2009 19:09:22 -0000 Authentication-Results: pb1.pair.com header.from=christopher.jones@oracle.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=christopher.jones@oracle.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain oracle.com from 148.87.113.125 cause and error) X-PHP-List-Original-Sender: christopher.jones@oracle.com X-Host-Fingerprint: 148.87.113.125 rcsinet13.oracle.com Received: from [148.87.113.125] ([148.87.113.125:48571] helo=rgminet13.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/B2-12172-1E0D1994 for ; Tue, 10 Feb 2009 14:09:22 -0500 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n1AJA7T8003793 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 10 Feb 2009 19:10:08 GMT Received: from acsmt700.oracle.com (acsmt700.oracle.com [141.146.40.70]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n1AJ96G4022087; Tue, 10 Feb 2009 19:09:07 GMT Received: from [130.35.70.24] (/130.35.70.24) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 10 Feb 2009 19:09:05 +0000 Message-ID: <4991D0D0.1070406@oracle.com> Date: Tue, 10 Feb 2009 11:09:04 -0800 User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Markus Fischer CC: Eric Stewart , internals@lists.php.net References: <4991A889.8070004@oracle.com> <4991C7B6.9030403@fischer.name> In-Reply-To: <4991C7B6.9030403@fischer.name> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: acsmt700.oracle.com [141.146.40.70] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090209.4991D0D3.01DC:SCFSTAT928724,ss=1,fgs=0 Subject: Re: [PHP-DEV] ini value of On = 1 and Off = "" ? (Re: [PHP-DEV] RFC for new INI's) From: christopher.jones@oracle.com (Christopher Jones) Markus Fischer wrote: > Sorry to hijack, but ... > > Christopher Jones wrote: >> oci8.events and oci8.old_oci_close_semantics are boolean, so we can >> take this opportunity to change the 1 and 0 to On and Off. > > ... I've never understood why writing On/Off is a good idea, It improves human readability of php.ini, making it clear that the parameter value range is not numeric. > when it is not intuitive that the value returned from ini_get() is > of a different content (not meaning, however). It could possibly be argued there is an inconsistency somewhere, but then PHP type juggling and comparison have their own "charm". Chris -- Email: christopher.jones@oracle.com Tel: +1 650 506 8630 Twitter: http://twitter.com/ghrd Free PHP Book: http://tinyurl.com/UGPOM