Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127946 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 704061A00BC for ; Mon, 7 Jul 2025 17:30:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751909334; bh=JSJBJz9D8WJosp8Mw3NPAhbWWBo+f4m3YgSps0hf5X4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Lzd3iwl1HJOYXR7KWstBDUtCGJ+MvgS72kcaGgN9mwAB9sHcxf5wq0Iq+T0LRMUZ7 BlOXnrUE4lwxm1f6zmI+QNkJ6cv0n8WMO+Rf7ANK5OirApuSKSrttsQYs/GrCAthWD PbGq4mHtNrOVrtaooUSUiTz5abvEjRALUm/47Z/McZAtZjkn4p+fsrvHnd7RIGjvGh 0kLFjLl/IKCbAK9Iplt0Upoj4FZ1OrA21ziA67n6YiZ38gGHxINzqB6laZhHbQfL2O O01vxtMFuRigoASepWlSTu3PxHGCfgmnY6MK0xEXC/GeRTf32q8hVDBXrwbxwMd82o vghXRbrN/rmIA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 497B4180083 for ; Mon, 7 Jul 2025 17:28:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,T_SPF_TEMPERROR autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 7 Jul 2025 17:28:50 +0000 (UTC) Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-3a548a73ff2so3340798f8f.0 for ; Mon, 07 Jul 2025 10:30:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; t=1751909439; x=1752514239; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=JSJBJz9D8WJosp8Mw3NPAhbWWBo+f4m3YgSps0hf5X4=; b=SLBcbb8Tky4NQd+4Q/0zMEBy2vEx2zYPpYTuFoN7OEprRSOKpIFi/2rbbBXSR1PqXo rMkZxnoGUakN+2psbWi8C6mWhnO4S3L4u7Vv/PgfAP/wY7TSuPfT7fEKc7LB/j1sNhNN oobEfMA7e6fvU3HUIxqRL4joLabeW9DKI29YM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751909439; x=1752514239; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JSJBJz9D8WJosp8Mw3NPAhbWWBo+f4m3YgSps0hf5X4=; b=GgIzoLZpcQJ8F7LmRty/Eh0NeU4TCYgo8us7dj3a4iNis3wQdMdeLlTIQny+hBzm9F qx4JVpNyoUHrPAwweYAubr0xs0PkRTE4l2GnZwyveMeNlEzvDpElBkz9tC+Ef7iiAEJ1 cvw7ZIXVEVdhVuq+ByWgGJH+bfLvJFgAWL1Cww03/gVolpBZwe1ucmjLVCyLmKtmuCwW GhfkbqafhoE1bknGGJSlZdaHT02rCxdxCXy2ROWc7X9cDLZ4WhmH03qCmTU15THYSfwX LFslhuVc2x5kQXQGyfeNPY4yD2Wj4s1TQLFnIURkOyr8c1RU1QWuSwki0ZAERxD3Hm+x 0Kgw== X-Gm-Message-State: AOJu0Ywed/zLkElpG8HL48ieSFMdCA/1FWRO/84IgMBJN9cp2FEvjE17 zkRA0Rgz7MrkJwo6vEav+rIvGGph5J8GzfYQTi0Kq2qBcEcp26ZidmDUXhQKk3hCnLpvh11cw/l dkYjYH5StJh9/C2CWL7Voto4wSKyxJyotBDd9VkIb7Q== X-Gm-Gg: ASbGncsSzkuTpjabeQNHWRF5Il3RNlwNiz3EuexnnvxKy2XxuJBqFKjdgqDA2Ri8nYP okGTWGaWeaZW7yY735pxVgos/7ynIKo2WmQoNDg+z6mviQ5sLG5PBBY+8yDlVVhs6KIa+7q502D Sc23Ph2eKNtdd+UmSLF7YwPdQh+EBKlA/8CGriq4ME0Axx4a7ISVL3 X-Google-Smtp-Source: AGHT+IFP2YewCW6wr1/8OEMkihMeoo8aaw69SemJ/VsQ+ehZ73G7l2omq1wc52JXzO7jx3k23qQZnt+2VLOiW7zUNhY= X-Received: by 2002:a05:6000:481b:b0:3a5:8d0b:600c with SMTP id ffacd0b85a97d-3b49aa0e7d6mr6882164f8f.3.1751909439446; Mon, 07 Jul 2025 10:30:39 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <6a9d4f24-65e4-40ee-bf16-9b1120486d83@app.fastmail.com> In-Reply-To: <6a9d4f24-65e4-40ee-bf16-9b1120486d83@app.fastmail.com> Date: Mon, 7 Jul 2025 13:30:27 -0400 X-Gm-Features: Ac12FXwgsfTSKbLKpihpfiQ52WBY_oGKKsk--OTi-socp60LULrMYSNaYIaTBDQ Message-ID: Subject: Re: [PHP-DEV] [RFC] Partial Function Application v2 To: Rob Landers Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: levi.morrison@datadoghq.com (Levi Morrison) > My only question: why does this implementation care if you specify too ma= ny arguments when PHP doesn=E2=80=99t care if you call a function with too = many arguments? That is only true for userland functions, by the way. Internal functions do care. Historically, we could not do anything about this because variadic functions were only introduced in 5.6, so many functions did not specify that they were variadic and just used func_get_args(). Additionally, some people think it should be unified the other way--internal functions should accept extra args. Anyway, there you go on some history and reasoning of why it is the way it = is.