Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98452 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2644 invoked from network); 9 Mar 2017 09:33:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Mar 2017 09:33:53 -0000 Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain lsces.co.uk designates 185.153.204.204 as permitted sender) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 185.153.204.204 mail4.serversure.net Linux 2.6 Received: from [185.153.204.204] ([185.153.204.204:59208] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/80-06022-F7121C85 for ; Thu, 09 Mar 2017 04:33:52 -0500 Received: (qmail 10423 invoked by uid 89); 9 Mar 2017 09:33:49 -0000 Received: by simscan 1.3.1 ppid: 10417, pid: 10420, t: 0.0456s scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677 Received: from unknown (HELO ?10.0.0.7?) (lester@rainbowdigitalmedia.org.uk@81.138.11.136) by mail4.serversure.net with ESMTPA; 9 Mar 2017 09:33:49 -0000 To: PHP internals References: Message-ID: Date: Thu, 9 Mar 2017 09:33:49 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [Discussion] is_string(), string type and objects implementing __toString() From: lester@lsces.co.uk (Lester Caine) On 08/03/17 15:13, Larry Garfield wrote: > (I suppose there's a debate to be had if an int is stringable in strict > mode; I'm not sure there myself.) I think the main difference between strict and what I will call normal mode is that in the strict world of a compiler you have to call code to provide a string of characters from a binary variable such as an integer, while PHP was originally designed simply to provide the string view when that is needed. Conventional user input is typed as strings, and needs to be displayed as strings on the way back out how ever you restrict the filtering of that data internally. Strict may provide some users with a comfort blanket that internally they have to do fewer checks on the data coming in but it is only creating an uncontrollable mess instead since there are now even more ways to filter what is essentially the same simple data. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk