Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97436 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54173 invoked from network); 18 Dec 2016 10:47:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Dec 2016 10:47:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=netmo.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=netmo.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.47 as permitted sender) X-PHP-List-Original-Sender: netmo.php@gmail.com X-Host-Fingerprint: 209.85.215.47 mail-lf0-f47.google.com Received: from [209.85.215.47] ([209.85.215.47:35774] helo=mail-lf0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/E1-27550-C2966585 for ; Sun, 18 Dec 2016 05:47:09 -0500 Received: by mail-lf0-f47.google.com with SMTP id b14so36389314lfg.2 for ; Sun, 18 Dec 2016 02:47:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=clfE3HO2EpjBiAIuEiJy5oP4zniHw1D7em49BVmRG2E=; b=tw0TnnThlk1+iyxySwd4xfk/sm5X67sbfJG14QAXqH1smkrM60Waw02CndFcMDSOlZ fjjfUfiAbeLTU74zY+gyw2e82n778AnnKIJ5S3YJ5r6vB5ZuQjqZJM4A33bzRx1HQc6J OOJh0VCzL1APnyRs9wwd6q0NL+FuhyZU+Lnu77h3MFRI+De5ngd6gQoxnbnR+OjyV3Te OgrsRrr50SX1jjHZb2f+YkqJyXnk07ZZ3r7el2tQDIX5QkVVoCk1+cDvUMb4b3zXfDNa DXIFr17enhCH9028ADX13ANwSbHAqg1z3FlqhdMm5NDFgD+LIIFkUHTP4q7zafcHC24R cjvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=clfE3HO2EpjBiAIuEiJy5oP4zniHw1D7em49BVmRG2E=; b=Od6J/Vv5KrvDCWO4Q8a8PkawYrtccCbTgZYx8oA/yff4DPM3bno1ArLCWQpZggfscb keI7qlUcbPxNMvOhB22eE7u3swRv6sZaZoo8T4iCdaOJGEaWIbhpLAfp/oPd16F3g5ml h3xxDlt45AQBx8J6cCswkO/KXqjqQbRJzcesDDCqNv7FtGhcNMrQ9PqqpLFJvZqoLwTh WPWab+km8BnsQA6WPGb1C9m1h05MWyaAyc8oxkfHPkEldi/HbebW7B/DJhCpj8f8FKU0 Hsj6NuwM2rjHrjwLq2RRzkCj82T1PwC8nY1v0HwiFAC0BRPnLCSsJqySCfvJ6kHpmeTz bh+w== X-Gm-Message-State: AKaTC009Oqt3wzd4sbzyQwXrAHXGoRJReSWY1vouE4kk0OL94MJgXdjvY15+7UZ1A/Gh5wUHP7koMBXOujhF5w== X-Received: by 10.25.168.196 with SMTP id r187mr3407429lfe.70.1482058025592; Sun, 18 Dec 2016 02:47:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.12.102 with HTTP; Sun, 18 Dec 2016 02:47:05 -0800 (PST) In-Reply-To: References: Date: Sun, 18 Dec 2016 11:47:05 +0100 Message-ID: To: Marco Pivetta Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a1141147226eca10543ec863c Subject: Re: [PHP-DEV][RFC][DISCUSSION] - Throwables error code's type generalization From: netmo.php@gmail.com (Wes) --001a1141147226eca10543ec863c Content-Type: text/plain; charset=UTF-8 Yo, Marco :P I don't need to add any contextual data, I'm just trying improve consistency by formalizing what PHP already does. I think it's the right way to fix this because I don't think changing PDO is ever going to happen. You either special case PDO in your code or formalize the special case so that it becomes the norm. Again, there is no actual formal type restriction right now, existing code that assumes `int` is wrong, even if it's not their fault. If you are making that assumption your code is broken already. --001a1141147226eca10543ec863c--