Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97922 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68332 invoked from network); 22 Jan 2017 12:05:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2017 12:05:56 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.22 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.22 mout.gmx.net Received: from [212.227.17.22] ([212.227.17.22:54363] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 79/34-00729-320A4885 for ; Sun, 22 Jan 2017 07:05:55 -0500 Received: from [192.168.2.109] ([217.82.227.219]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lv9lm-1cMvEc33f0-010PGp; Sun, 22 Jan 2017 13:05:48 +0100 To: Rowan Collins , internals@lists.php.net References: <840ab355-966f-7c49-a337-5335a5022de5@gmx.de> Message-ID: <20932f6e-4c5d-ad0d-2b90-66de3c0d1f4d@gmx.de> Date: Sun, 22 Jan 2017 13:05:49 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:ppKteBnGf6CP3Ej6H0lv2y/fAVXdZogx0SFFb2U3XXApFvqpt+s JwS4TbhqTZ7b/YuhxYz6KAwbI7Fygeb3NzlsoHTzUHNEpFCq4vCTY22mHRjZW+Qw2g2dv18 uMhsI8C8a6fmfaPT+CFteRIp+ZJB6Ukx3Psr3vnx9O2UbmHoccb53CGs4VYmTVPSd4Gbl4R vmSppMY/xhzDKkWd+3IIQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:4pTGKkC+3lk=:TnpKhb0r0bJWGVLVVerZsR zXVYph3PD14pydrv9c8w4lVlneapiaRDagEakXO78e4jkWR2MGLmogs6qnBZUrpg5TcNhoEu2 1PCPXHIlbaERyybSeIUTh1DhAtRezGH0fcu0wPO7Tf4UEDQR8JYtm+mS7XF4lGK0GpS4EgSSJ OK+XB3Ark7h2khQH9DAeQZObMbZ8KS+Habh7PB4IfKex+nf36sL6vwavrfAVxDDOXlq2LEQYw RValwe5QgcRWK9xDCfmp05SI67B7c0cCXmtG6TVzegEBYWcXUdXLYVzvQCBHpgvJJPxmpjiki 6h+jbQuywp7BSbYJt2G0O1J2yGoeqOY6Nv4/iiRQ25YgdgI2+H8Aul8ogj/Tny/B4QgTfhfTj ZV+HMZTYez2va9YdRqqImo62UHF4eWK9jmTjKHVW74zlVlKGw1AbmaJLEYbiK/Z4osBoIDrF1 8KnVwDfb9E1ebVN8MshfZjsGRxAYLmpiIb8O6gSFtBZGiv0mW4EXTjVhrz1nxgN21R4r0o+Qs jf/fCnzJuJf6P+wp9Fg6aCPClmh0QiLLGyimYueq01DGTq4Q/FIRqsTqMkDYMq5z5bOCiJPdU 4qI/g6EiXbKrGEkjkbV76S85tOiizQqdpCgU0N3MUb1tjoiDHGWy1M1w9PeTnDwZXUkfEp4XF 3mYMJI94QXQ8HVcRXtp6Hwxr1DgXKR7xAzTUEnOww775uzQyW9D5CMZhi+nKPYpoJDmH14+fb a9sWHnipEzdAUkFGyXKlnvihGIhmBrzxRdiZiLzkByNkhAzml7F2oikYL+tJcAlNC4hSgqFI1 n8tscgldVG34rKI8Is9M7cBxG2Cmg== Subject: =?UTF-8?Q?Re:_[PHP-DEV]_imagepolygon=28=29_=e2=80=93_number_of_poin?= =?UTF-8?Q?ts?= From: cmbecker69@gmx.de ("Christoph M. Becker") On 21.01.2017 at 19:11, Rowan Collins wrote: > On 21/01/2017 17:42, Christoph M. Becker wrote: > >> In the long run (i.e. for PHP 8) I'd suggest to purge the $num_points >> parameter altogether, relying solely on the number of $points given. > > Since there's a 4th parameter ($color), what would "purge" mean in this > case? Reducing the number of parameters to 3 would be very confusing, > because existing code passing $num_points would be interpreted as > passing that value as $color. > > We could ignore the argument whatever value was provided; or we could > document that it should be passed as null, and raise a warning if it's > anything else; or we could ignore it if it matched the length of > $points, and raise a warning or error if it didn't... I haven't really though about how to do that, because PHP 8 is too far away, and for now I'm interested in a clean solution that can be applied to PHP 7(.2) -- Christoph M. Becker