Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97435 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50861 invoked from network); 18 Dec 2016 10:09:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Dec 2016 10:09:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.50 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 74.125.82.50 mail-wm0-f50.google.com Received: from [74.125.82.50] ([74.125.82.50:36852] helo=mail-wm0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F9/61-27550-B3066585 for ; Sun, 18 Dec 2016 05:09:00 -0500 Received: by mail-wm0-f50.google.com with SMTP id g23so70803386wme.1 for ; Sun, 18 Dec 2016 02:08:59 -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=BOg4NaNvdKkXI9qQDSgL2KClqpnNh2WM6SBq1PkxWtI=; b=Pafld1vVeE4FSo7eM4dP7Dch6JQYTm6TPxUTjj5vQD9nTaa+VDiu9XCVnZlY4JZowU 9AGhTFPH5COU2yWqvzV2RGFmPwi9dX1Vcff5FDt832IskyeP3h34ucKV0PNQ0M9FJq1q m309xqooVI1Pdkf5THSkU0r00w6NoM7/bXuKRaqqIF4lg2Rb7nPSKrh6/85vRhPOT2XX 7t1cxWyvjywLIyi4u5Wdv6uX/vH9jDAROmo+Y3Lew62xXuJXI4MGjAa4nL0QjS4BbV7D 3HMKdetnDVkAMxIiLEqnKfprH9dRAh2hTowGKB6zGOjEC5hJ4SHFPHbJ7rNggX8vVZV3 vxvg== 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=BOg4NaNvdKkXI9qQDSgL2KClqpnNh2WM6SBq1PkxWtI=; b=K8F7QA79tQUAtn12/Y2V35xCpvLPufmhcRGwkKPdxCWnlt9G0/+Mm5pjo3PkmtW6yz kLNoj6FGrq8BjLBHUssYF5USGIyqOmIPrXNFqmtkXfLgJ32jm/1FsH0yVvSsLma1bm5i 5qvZu/49jvD2FDi/TldyS/jJpKtyNPKgc6547RbXW/I8vUXmIoRgR6h33/J35NUwzPBe wTDQJAS35aorZz6k5WPQW1rckAR+mz7P2vq0+yeOqxRXEbn0UohBmRo/4vdxf8QGtwVm UtsTFGcxeqEXm+xfkqvl1UUaapehxbVOFt32EpY4C1LT9XyEWX3zFgXQgf4xikbMzTSg UqHA== X-Gm-Message-State: AIkVDXI8rbG9n4BA67tlfzoOkRtOh5Ras3ZG8jsLshPE7lLwIK8RW5B3QqPytJRxQwvSwJMwSOPh3/lKk/GcHg== X-Received: by 10.28.230.197 with SMTP id e66mr9924426wmi.12.1482055736700; Sun, 18 Dec 2016 02:08:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.173.106 with HTTP; Sun, 18 Dec 2016 02:08:54 -0800 (PST) Received: by 10.194.173.106 with HTTP; Sun, 18 Dec 2016 02:08:54 -0800 (PST) In-Reply-To: References: Date: Sun, 18 Dec 2016 11:08:54 +0100 Message-ID: To: Wes Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a1146b31ab9360e0543ebfd40 Subject: Re: [PHP-DEV][RFC][DISCUSSION] - Throwables error code's type generalization From: ocramius@gmail.com (Marco Pivetta) --001a1146b31ab9360e0543ebfd40 Content-Type: text/plain; charset=UTF-8 Looks like a step backwards to me. In fact, I just had issues with code (in zendframework https://github.com/zendframework/zend-servicemanager/pull/167) that assumed integer error codes, but then failed because PDO failed to adhere to the property specification (PDO needs fixing here, not the other way around!). If you allow anything in there, we'll just have more issues in consumer libraries that have this assumption and consume exceptions (all of them, if they are done correctly), since you just broke invariance. If you really need to add contextual data to an exception, please add a new property instead. On 18 Dec 2016 10:38 a.m., "Wes" wrote: > Good morning nice internals PHPeople, > > I have just written a new RFC. I believe is mostly about cosmetic changes, > as what is being proposed is probably already informally supported by PHP. > > I would like your opinion about it: > https://wiki.php.net/rfc/throwable-code-generalization > > Thank you. > --001a1146b31ab9360e0543ebfd40--