Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119675 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 66031 invoked from network); 9 Mar 2023 02:53:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Mar 2023 02:53:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 37CBE1804AA for ; Wed, 8 Mar 2023 18:53:17 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ua1-f51.google.com (mail-ua1-f51.google.com [209.85.222.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 8 Mar 2023 18:53:16 -0800 (PST) Received: by mail-ua1-f51.google.com with SMTP id f17so227162uax.7 for ; Wed, 08 Mar 2023 18:53:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678330396; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tjNOWXwl2+Xg8sNVp3VrG5cf14yWHA5HhlARzaYErEc=; b=m+hDzL3SEqEhTz20gbMSXXsQ1AL3VYeabWqC8al+znXXUsUp1x4Cgvy4413/SMlFhg TLhLG4THUGMmLi71DPaLz0sQ7J/6ehRmV1qqgtXMWQgIwLg4JC5B81QdbEBr5ZwxVZ6k +0U1Pxwe1ucUL1XXwozT3bR0R0XllfgwnYrioPTlJgVKxkmaK9n3BpmxjmTtz5h6Nhcf 5nJquRC/vcvt8Gjw4EFCUdbjA5N/dG3wGtqpxj4u3Db779lli85Uzs4DvpsuBKeY7udk N3io8dYYR6dHBq1hJHMBt61M3RBufblZcHbCbVK7x99f3Iivi4lHZTRm8jSrwIpYL1Hu ZDaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678330396; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tjNOWXwl2+Xg8sNVp3VrG5cf14yWHA5HhlARzaYErEc=; b=lXt6n3rM1nFYMh6HhaqLiGScKpFqgAzKvBlIHmmccmdu6yqwb2FeJplS1FbrknJAxo UhyFGUJ9ji3qCB6YK5KJA+qOhK48u8zgPC9m3T1MOIRKHOzhnPKqBGUaB/9IIbp4N/DQ qi3osa8CoZyL7LIGsUxNHTes4cmwOFHu2PTifYI0y3/XAFts1OBGUaCFVaSBO9FDqg8C YaaNlrdICtBcM0rvuyG8EsFHvhb3HxyGxz68FdBvvkBlqPXDGQSjphCqgaydLroMCW4r 7QObabXJbvXt9uJGphWjhUIsO54Cgsj6P2aKJPyjw/obwxUeckMEehXnCeYhOWNuVtFn h8+w== X-Gm-Message-State: AO0yUKXbpKbD872tCAMUcHpoX6tZX0eA2EfXgGg1EaAk3ginGBG2wdsL cDJ2LKol2ysNIJrUtXMF2MRG2+UOrUv4FmgsF48= X-Google-Smtp-Source: AK7set9ipgR36PBE/f78DMISIN01VvWFUATBUHZ/dgDm/y4fJM1bVxUDr7Tk/hNg0jPXBY3Vh3m8sg0lcxkD55VPMSo= X-Received: by 2002:a1f:3f8f:0:b0:3ea:b7e1:fb29 with SMTP id m137-20020a1f3f8f000000b003eab7e1fb29mr13373683vka.0.1678330395733; Wed, 08 Mar 2023 18:53:15 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ab0:71cb:0:b0:69c:2642:7409 with HTTP; Wed, 8 Mar 2023 18:53:15 -0800 (PST) In-Reply-To: References: Date: Thu, 9 Mar 2023 07:53:15 +0500 Message-ID: To: Kamil Tekiela Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Two Issues regarding Named Parameters; want to understand the technicality From: office.hamzaahmad@gmail.com (Hamza Ahmad) Hi Kamil, Thank you for your response. I shall sure create an issue and will update in this threat. On 3/9/23, Kamil Tekiela wrote: > Hi Hamza, > > If you encounter a bug, please create a GitHub issue with reproducible > steps. Your description of a program crashing is not actionable, as we > cannot reproduce this error. > > Regarding your second point, how do you want this to work? $names is just a > collection of string parameters. It's not a single parameter so you cannot > refer to it by name. When you use named parameters with variadic > parameters, then the names you specified will be used as array keys. So no > error there, and no warning should be raised. But I don't know what you had > in mind of how this is supposed to work. > > Regards, > Kamil >