Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117175 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67686 invoked from network); 1 Mar 2022 08:27:36 -0000 Received: from unknown (HELO localhost.localdomain) (76.75.200.58) by pb1.pair.com with SMTP; 1 Mar 2022 08:27:36 -0000 To: internals@lists.php.net Date: Tue, 1 Mar 2022 09:48:47 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Content-Language: en-GB References: <983552d8-11f1-b5bc-fb82-148347982fda@gmx.de> <5494eaa7-2fa6-8364-9683-a2c8c9789d81@gmail.com> <69642616-72b7-44fe-97a7-27ae03bc8fce@www.fastmail.com> <7fbed755-42e2-d023-285f-39863a97f297@gmx.de> <3665C848-B4C3-4528-AEFA-02C868748AA8@cschneid.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 149.241.136.89 Subject: Re: [PHP-DEV] Allowing NULL for some internal functions From: marandall@php.net (Mark Randall) Message-ID: On 01/03/2022 00:36, Craig Francis wrote: > And because I'm back to tired pissed-off sarcasm masking depression (why > bother spending days on a solution that works for everyone when we can make > a hostile/elitist environment/language)... maybe we could simply suggest > that everyone affected by this should use strval() for everything? People aren't giving you the responses you want, because you haven't yet made an argument to convince everyone that your proposed solution is better than the existing ones, which are to use the language's existing tools to provide a sensible string default where one is required. You see a problem, but rather than trying to fix the underlying cause, you're proposing making changes at other layers to accommodate the side effects of the original problem. That is practically the definition of a hack. Except rather than a short term fix, you're proposing to make it a permanent part of PHP. That goes against what many of us would consider in the best interests of PHP and its users in the long term, and yes, we acknowledge that getting to that point will first require some short term pain for those who have historically been overly lax with their coding standards. Mark Randall