Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103077 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58334 invoked from network); 10 Aug 2018 20:30:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Aug 2018 20:30:25 -0000 Received: from [127.0.0.1] ([127.0.0.1:26643]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 33/F5-18754-1E5FD6B5 for ; Fri, 10 Aug 2018 16:30:25 -0400 Authentication-Results: pb1.pair.com smtp.mail=donatj@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=donatj@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.44 as permitted sender) X-PHP-List-Original-Sender: donatj@gmail.com X-Host-Fingerprint: 209.85.218.44 mail-oi0-f44.google.com Received: from [209.85.218.44] ([209.85.218.44:45617] helo=mail-oi0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/E5-18754-172FD6B5 for ; Fri, 10 Aug 2018 16:15:45 -0400 Received: by mail-oi0-f44.google.com with SMTP id q11-v6so17824363oic.12 for ; Fri, 10 Aug 2018 13:15:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=MBDkDVGNdreLNv+//FPLmk6GfkReEd7FsBg5kQGZjzk=; b=LlZfJPBOEYatKI4eQlvOqK87dvUF2zmijvXLkOT1GSDBSoqA0S+NTcBywmTlOy9B/g UzjJc9vVx4TCQxDYo6W5fTotwQaFXl5dXKp0BUYEKQpSnZdcu47qp3gkvvrqcc1uvioQ LDHUia1Yk20i/d995+XOgOuO9VBqpKChvHVp616yuqbt652YW9SBiM4Y7q6qUy01kewK VVmLw5c3vfrqjZ/KNJBJ5UwjsdADDHJXsVJddUVBubcT1TeNGHOL+8Hd4oVoTq2ooIoS dTXe6usY4qN7n4xSWIIK6tI4VLutIjXM25Ru+cM1fDR3URbZpVLUOnhi2c7QvIa3X52w ri7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MBDkDVGNdreLNv+//FPLmk6GfkReEd7FsBg5kQGZjzk=; b=QqhtcXZLRv6rJTeYfjlYTBZPJzkKVKuj8HvP/FDZf88uVp7g+OB2b1psSaPnb0dpRJ kv2McPZOZeQwoIZuD14kJa7ZvTeXzLV8JIwVD6vOWZm85lHANU6ABhYkQsmWby4OcG6F v7ja2yGypTZhIQMhJIlvIAAptHskEXICbNJszX6iZjXVbbZvrOeJNhVDCQg+uNJpk7cF M7uJpRig0F+FNGXv/h/CrhaqVVNr0Yj4wQ8OB5Z+P+ulHe/QxAdmId2d/wEtPWIr1hcR x70926bsy6sQq+Hj6FTyj/Lf9ldKaDWHnQcDxFnLTEuD9K/p0fpWS7U8FExyuyyhwRyu DjhA== X-Gm-Message-State: AOUpUlHA9d6zu8MF9YHiE5GMbzwhBADPCHQR6A/cylBd2gdprI337cap aon5NBrO9XJnUdTixnvrl2Hr+xvfB8VfatiMN/+1JA== X-Google-Smtp-Source: AA+uWPyyuuWMqPY5BhSHA6xgn3hk2eYd9wiKDkOOK2g1Y943LDEQPAQwd2VSI6SKN1+C2++ANnO/wC8qJCdDlmfMSA4= X-Received: by 2002:aca:3254:: with SMTP id y81-v6mr7875076oiy.317.1533932142263; Fri, 10 Aug 2018 13:15:42 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 10 Aug 2018 15:15:31 -0500 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Subject: RFC Proposal From: donatj@gmail.com ("Jesse G. Donat") I'm measuring reaction for an RFC Essentially right now preg regex's fail silently - and you have to actually check them manually with preg_last_error - something I've never actually seen done in code. see: https://github.com/php/php-src/pull/2910 https://bugs.php.net/bug.php?id=70110 https://bugs.exim.org/show_bug.cgi?id=1663 I'd like to propose that, in line with the recent JSON changes, the preg methods be made to throw exceptions (or at the very least - warnings) rather than fail silently as I believe this is a bad behaviour. I personally do not have the low level coding knowledge needed to do this, nor do I personally know anyone who does, so I would be submitting this as a "concept" Thank you ahead of time! This will be my first RFC submission, so I hope I'm doing this right.