Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102554 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87126 invoked from network); 2 Jul 2018 21:17:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2018 21:17:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.169 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.223.169 mail-io0-f169.google.com Received: from [209.85.223.169] ([209.85.223.169:34029] helo=mail-io0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/AD-15351-B469A3B5 for ; Mon, 02 Jul 2018 17:17:00 -0400 Received: by mail-io0-f169.google.com with SMTP id l7-v6so1989902ioj.1 for ; Mon, 02 Jul 2018 14:16:59 -0700 (PDT) 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=WxJERJLuEU0INnN6SjXC5N0wLnpNorER5B1tH42wucU=; b=dOAcLKCB6aP++OV4tczWt0wXC9QdaJ67denSp0ihEBBER9+WMYaWZSjvOX9/5OXfCu 3KuqTngHbrI8jYZkTdvGzW2X91wFtxlbQGlW0AntQhClHXBUNFbOwlOPlv782xdurVGs jn0Q2D7JjM/3sHHDEWha4pfPDMzH+ahh4XgpusqfL5AR8YhV2ojpbnJ0mVy78XcVn/b4 LvP20UBmQZRpt+dVv6j9n1d6fUbphD3kfmv9XfUTgTBFE1N9u84pCEA1ls7X3vEUTGp4 WUpF5g4poq6xRRZoV5B/DTRT8YGeXWGY+6TpVlyXukf1AgvHZx8DseQLvy9yQd0C2kuY Ib8w== 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=WxJERJLuEU0INnN6SjXC5N0wLnpNorER5B1tH42wucU=; b=YcD0Uv9LD1gvphZlNxsRlLA5QxM0VGThl5KjeypmB2dxi0rNU38IoLht5yPkamFnSO VAMpTXo7iQamkt/8qTBFpUtP08fcka0ptdTapoNWAFI4P4zaLCpO3BEoW73WbNdekNqa FRGQMAd7LRBXoD7acsRgpsPksgZcgyKYlXfjMsuZugIvS63jugVzDNsqu85mYem2wN9y z8B9CQ6QdlmiTHq0/oSSLGrxkEyjwn5zSqzLTl89QG+PGoJZuXPWhpEnpxN9ZwMGQix0 nkMYTik/D2adD6evfbJwP/A/OC0OwtfM0BnAzWrFhGlhjb+WHqK+DatVLsAIp7kQKuma 8Lsg== X-Gm-Message-State: APt69E1VQ4MJ7RYVLvtWKoQbVmRAMNAKd16C7fhWJCZsm7wUQrgd+rAt f3DHNNrqqwuo7/avnbxMEgPbcxJxgu0TsOJj7cs= X-Google-Smtp-Source: AAOMgpcR7ulyeHnXthm8DKReMtM8yRPIe06J9RaHSxj2RmqwFQcP1CX3MCNRrN+sN91VRvwuOoAzN4uRDTRagxZrR+8= X-Received: by 2002:a6b:254e:: with SMTP id l75-v6mr2841253iol.47.1530566217200; Mon, 02 Jul 2018 14:16:57 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:148a:0:0:0:0:0 with HTTP; Mon, 2 Jul 2018 14:16:56 -0700 (PDT) In-Reply-To: <5787528b-eddb-7fcb-c43d-3b4211073ab4@gmx.de> References: <5787528b-eddb-7fcb-c43d-3b4211073ab4@gmx.de> Date: Mon, 2 Jul 2018 23:16:56 +0200 Message-ID: To: "Christoph M. Becker" Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000ae898005700ab755" Subject: Re: [PHP-DEV] Excess arguments for internal functions From: nikita.ppv@gmail.com (Nikita Popov) --000000000000ae898005700ab755 Content-Type: text/plain; charset="UTF-8" On Mon, Jul 2, 2018 at 11:00 PM, Christoph M. Becker wrote: > Hi! > > Is there any particular reason why internal functions raise a warning/an > error regarding excess arguments, unless they are not supposed to > receive any arguments at all? In other words, why don't we use > ZEND_PARSE_PARAMETERS_NONE() (except for net_get_interfaces())? > The more common macro for this is zend_parse_parameters_none(), which a quick grep shows to be used by 519 functions. If a function accepts no arguments and does not use zend_parse_parameters_none(), that's generally a bug. Nikita --000000000000ae898005700ab755--