Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97916 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22230 invoked from network); 21 Jan 2017 18:12:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jan 2017 18:12:37 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.47 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.47 mail-wm0-f47.google.com Received: from [74.125.82.47] ([74.125.82.47:37791] helo=mail-wm0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/10-00729-394A3885 for ; Sat, 21 Jan 2017 13:12:36 -0500 Received: by mail-wm0-f47.google.com with SMTP id c206so92645034wme.0 for ; Sat, 21 Jan 2017 10:12:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=5IkSV7midwDZt7GhJz61RiMVZpi9PcFKRtr0gMPN8YE=; b=Uvkx9cgVKk2MyOqapW2IyeMV9yTMkHXvlOBSPLI/70v0iry5S3417As0TfydHrh/8n C0KdcQIATa0NslezY6Pl70WSFI4/Tm+U/ipE8cjhAANPxSL7Y+OyprSV2/LfiolvuYgk xSHdmdz5Dh4HhOab8q/J/4k2+7EvinWh4Ivc8KusJYupyXn8piFRPAuz167DS33t/owB rczzPBOPWp6bI5Q9j+4aSKXsT7zhcR/rw1w7gKnEnMjgCdiA/th9B+bR630GgS0vzbEm Ag9D692w2ZfcmxYkhfH55eG5sFnE0w6qhzBk1mrrWWEcq69vswlL0dEPa9gBzkRdwPh6 fkFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=5IkSV7midwDZt7GhJz61RiMVZpi9PcFKRtr0gMPN8YE=; b=scr5m3xGRTiTuaeTke03wrYWSWMx0prcreRqNXzAJceHeM7xPH4XX2GG/7RBqQH3qO p4yKANCTvUvbVHwI/rKTLwyWDKwC1Frjbgw+0l/ulpaRTImHhuxIqLHQAelOGT1aeNu5 M3nG0jYx/7hgfMkpVQBw43OiM0hArWKXGv6xvqkzzyDqmPdDSHCnNz8NhPXRCGnKD5ko HIlR3fbjBnWfwdkl7zUVlKVQwGn1OTY63pdrL36kG1NX+6A6kMGo85ECk4yjP8m9pEJc jDaEIdvEL8HcP5PZe12SCfuR37iof/mOgq3SUlJlT9OZocjez0JH16LFj0c6Gp3Ehs9G bBag== X-Gm-Message-State: AIkVDXIsvPNiM6UxrK/JSlMK/8UZMtqeb4UkLejVbJzt+xioyh5LUJktRFauU9mdiY8yzg== X-Received: by 10.28.69.28 with SMTP id s28mr5598362wma.40.1485022352931; Sat, 21 Jan 2017 10:12:32 -0800 (PST) Received: from ?IPv6:2a00:23c4:4bd2:6e00:1947:d62c:2543:7b5a? ([2a00:23c4:4bd2:6e00:1947:d62c:2543:7b5a]) by smtp.googlemail.com with ESMTPSA id 123sm12016426wml.6.2017.01.21.10.12.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Jan 2017 10:12:31 -0800 (PST) To: internals@lists.php.net References: <840ab355-966f-7c49-a337-5335a5022de5@gmx.de> Message-ID: Date: Sat, 21 Jan 2017 18:11:58 +0000 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: <840ab355-966f-7c49-a337-5335a5022de5@gmx.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: =?UTF-8?Q?Re:_[PHP-DEV]_imagepolygon=28=29_=e2=80=93_number_of_poin?= =?UTF-8?Q?ts?= From: rowan.collins@gmail.com (Rowan Collins) 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... Regards, -- Rowan Collins [IMSoP]