Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108674 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 5049 invoked from network); 19 Feb 2020 18:34:30 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Feb 2020 18:34:30 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4CDC818053B for ; Wed, 19 Feb 2020 08:50:25 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 19 Feb 2020 08:50:24 -0800 (PST) Received: by mail-qk1-f176.google.com with SMTP id b7so724733qkl.7 for ; Wed, 19 Feb 2020 08:50:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=FARplqaQgkmt9k50fv9MqUPTO4tQWDTLYGUakKZxv8E=; b=MRnEMNttBbsBWcK/iRxH0ps/rMmu4/h9s4sGWL7ik1w5p8B7E1w3qiyZucI1eyvlGQ eqn77ZfNjhMUF4MU8diHOM+vK1KmyDrLjX2ts4IKxQZzKHWsMPBB8MvefOiUrW+xwMlS pM79hkJ21KGNokDnHk66OpeL8WFd9ue5rA6D9nSO3belMgW/OdWA04Ctmn6Rxcqnfwpk Bzfozj4lS6Kq98Twed0yLsZsJ2Ns8Ul5PdZtUXa/JN7JYIvbPYdkrNDpiFaIfyjePoVN 5onuCEyP4YNSDthShjT+v8qTGUfbTyioa+cIhJx06m+n4SnPM5DNqTn9rZZ86ju+2rr/ N5OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=FARplqaQgkmt9k50fv9MqUPTO4tQWDTLYGUakKZxv8E=; b=X4IV9qbGkCiMmk2YXWMa64FG9pHZxHJAkQNF6cyiDjqw6xmjgG74w21ek2qFlgd6BD GhqVBlib/d0mfQ/N52e8qR8XxxQ1lPyquUc7dawBz2DrhzqMMccC7rg+Mzn30pcpHTXl TH/eK9523JpL3ggQEGJzaSGpcPLXbetZU0Z93BVnjd/X/MJtA0CogxvPmUS64efIOB6A Dc02N/BIPt+m4lBJB6E4UMwkcEfit6xURr7CiVimJlPS95F9VRC/z3yDvGW+ALqZRiEY 1xajh37LOYOqwJ+Mf2+BiveEtipvBejEPzw0OS0H0lrh3baP15Ah3m04ItlzDvCtFdwa 400Q== X-Gm-Message-State: APjAAAWvILZVBFQSpBAM45CIwt+TzO1xwYHMc+ME6a2vgdlBddgG9mNg yhpqn3B6DmT+hRE36NKfGjcXYg== X-Google-Smtp-Source: APXvYqyomJZPSxL1jYGMFVxydsul5qhtQKuzY4CKi09MQyYHY+r1csp2Ho5Y/nSsWP3x0GNmrT0UKw== X-Received: by 2002:a05:620a:24d:: with SMTP id q13mr21974372qkn.99.1582131023343; Wed, 19 Feb 2020 08:50:23 -0800 (PST) Received: from [192.168.1.10] (c-24-131-44-78.hsd1.ga.comcast.net. [24.131.44.78]) by smtp.gmail.com with ESMTPSA id e3sm254575qtb.65.2020.02.19.08.50.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Feb 2020 08:50:22 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) In-Reply-To: Date: Wed, 19 Feb 2020 11:50:20 -0500 Cc: David Rodrigues , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Nico Oelgart X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [PHP-DEV] New PCRE function From: mike@newclarity.net (Mike Schinkel) > On Feb 19, 2020, at 10:33 AM, Nico Oelgart wrote: >=20 > On Wed, Feb 19, 2020 at 4:20 PM David Rodrigues = > wrote: >=20 >> Maybe you can set all this messages as lowercase? That way we can use = it >> more easily. If we need the first letter in capital letters we can = use >> `ucfirst()`, because the opposite is more complicated (a = `strtolower()` >> would "break" the "JIT" message, for example). >>=20 >=20 > Hi David! >=20 > I'm not sure how this would be more useful, plus all other built-in > functions like > json_last_error_msg() don't return all-lowercase strings either. >=20 > I'd prefer it to be consistent with the rest of functions. I agree with David. Lowercase is best. =20 I am however influenced by Go which specifies that all error messages = should be lowercased for the exact reason that David suggests. Consistency is nice, but I would argue it is not great when it means not = being able to adopt emerging better practices. #jmtcw -Mike=20=