Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119674 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 58040 invoked from network); 9 Mar 2023 00:47:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Mar 2023 00:47:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BD8A61804DF for ; Wed, 8 Mar 2023 16:47:28 -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.0 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,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-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) (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 16:47:28 -0800 (PST) Received: by mail-yb1-f169.google.com with SMTP id k199so428798ybf.4 for ; Wed, 08 Mar 2023 16:47:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678322847; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=eGdpuM931NzLRuKgoSqw4ed5Mz/K4G5mupYdszFhCfo=; b=hn/3hfFzjd8nvsL9FfOAxD2/TFd2PkgiBUY2eTmnwsWhiQ0XGbha3bYNbGSOeob+r+ mODHWjb/7WugZrXXGQMGi5X/2ps6sZA4YejdMaYvtU8y89WWCEOo5NX12SfX/v9iiMej S+D7uGmgXhoEHemTErfEh/i4J20+59lGgZaIURqQGKnPiz9jTJe1XzJQPxD5BOCxB/gb 7fceDWE9XeMP0i4u5y40xNKBGs4mN5sdqdONkQN55CaxfP5lPW8U6yNmXByC6kel/Cev PFkpI65aI0nFHJuc2MxER3Dn6x1LBXlhC4vtHh6obJB5SNs7j6dtDqUs7NeWfQPh2RQG Y1cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678322847; h=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=eGdpuM931NzLRuKgoSqw4ed5Mz/K4G5mupYdszFhCfo=; b=NfsSSIXn0K0oqvspiPA/8v2XZPYifITq6SGAuWz0+QgVfJNjw5hkIgDgcgpj/bjf0h nYCkPhDKNLVOwgZ7T/XGoa+ri0Ec/N6YZnxPTWILlzShRv2/tVVnYyO8/Skj0y3ACV5F NdbXj7f2S/hvjsnPl0ZH5CioZrf2omDA7W/hBgg6y/Rumg7AjZb4gbvEHftwfRAztSK0 41wo5JQ223Vv3+vPtXISmrEfcfCxw+xSr6Jb5mHPlj0KHQEsyToxVtu5D0Fr7XIwIaD4 YWI92RW4WVLJB3v5MBuX0rmV/RtesFZaHSoIYXGAxJnpzTWPmZE7dNvO7coum6afNpwL SFLw== X-Gm-Message-State: AO0yUKWbHIjvurfeKvS4zSfp3LR8yj4F036HQkkRDMwBA++I8tturt5I gcDbDEk453pnKpMlf3RZNDTvX9okpf4wI1jfvbA= X-Google-Smtp-Source: AK7set8SRliUOkwj0JId6vDQeWzo90cvx7mkGGbKpK7Dck9cjnybaYunKJQpCbb1YfCGMk8h11uMY7MMIwLdcGWik4g= X-Received: by 2002:a05:6902:10e:b0:98e:6280:74ca with SMTP id o14-20020a056902010e00b0098e628074camr10181417ybh.1.1678322847569; Wed, 08 Mar 2023 16:47:27 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 9 Mar 2023 00:47:17 +0000 Message-ID: To: Hamza Ahmad Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000025da8605f66cfda8" Subject: Re: [PHP-DEV] Two Issues regarding Named Parameters; want to understand the technicality From: tekiela246@gmail.com (Kamil Tekiela) --00000000000025da8605f66cfda8 Content-Type: text/plain; charset="UTF-8" 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 --00000000000025da8605f66cfda8--