Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121937 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 93184 invoked from network); 6 Dec 2023 20:01:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Dec 2023 20:01:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C4BDF180052 for ; Wed, 6 Dec 2023 12:02:10 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 ; Wed, 6 Dec 2023 12:02:10 -0800 (PST) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-40c09fcfa9fso2117385e9.2 for ; Wed, 06 Dec 2023 12:01:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701892916; x=1702497716; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=j4Bd/95JYMRRKjqjFJhD0VBGf7Xy+7jQ9Q4OTAuQPYc=; b=ex6lLPQHoG+kFNS7kDD+2uyFZuhD2ZURTrXME9j6ND0jpk9CcEbbVHEg7aDT62keq0 6BPobD9aMq2IcKdvYMH48bhzjWAboi/4Mfhnolj/9e1TAGYf38miLd6wAyeiKiCcbgl6 4gGcuOt7ZnPhSIJct0PyGf3pan7IEThjfj8FYxtrQ3uSFJiyHey0oMLQFyBJmK6yqsnO Nd+HkDreG1tQLfVN4yH10kFexQwgScMBAnbqPt7j/oVezZ5C212xan5rFzDHIcGkEfHt 0oHXAtT57D/PnomEUhTm0oDVU68PodVG153R7x7pXQnhxpJI6MGiksvwY49tn16T8KZN m4ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701892916; x=1702497716; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j4Bd/95JYMRRKjqjFJhD0VBGf7Xy+7jQ9Q4OTAuQPYc=; b=Mi7olm5cjCAlc4t1X3OelDrjzRcDFAQ9GmpGkdIGtsbaMmwPui2wAAtFMCRHG7/Clb JozLtPYRBrpKdqlV7H+yAtu6PwTGZEfYQjHr+8oFlsod1IrRisKcmkwzeBtJNUPCMf7O yA8QV2dY6ZbJamXUwjaJP45zC487vjQ1VC/7qzjFRGVcYIkqxiWawxBYzG+6ro864VSY yHRyb165edjV/TCtckayCmqk2gIM+0zm+zKRsJaq9jACpzWpqyiDrg1Tpzke4QZLNEsT /38CohJ5RRQlVgGiiHa3paA8SF/SBVRFGtsO9agSC09uxBbdKw/o9f4VVo00RAYQP69Z 1kkA== X-Gm-Message-State: AOJu0YyHf/mE/D7jAGg/Wz9Sp665e+W2o6q8THp84mAX5Z5zWZU39ShW Q/NuWDNiW6vQ23zcmV8HwGG1EcGmVYI= X-Google-Smtp-Source: AGHT+IFTQxyELcfSRNfP0lwmsXWhNPcBnsxEKNUqHaXHX78MeYa7uIDPK6Xqd4fF2s5u+4QSEf+3uQ== X-Received: by 2002:a05:600c:4395:b0:40c:2328:fb8 with SMTP id e21-20020a05600c439500b0040c23280fb8mr374205wmn.315.1701892916421; Wed, 06 Dec 2023 12:01:56 -0800 (PST) Received: from ?IPV6:2a02:1811:cc83:ee50:280e:1e36:3a00:824? (ptr-dtfv08akcem5xburtic.18120a2.ip6.access.telenet.be. [2a02:1811:cc83:ee50:280e:1e36:3a00:824]) by smtp.gmail.com with ESMTPSA id e17-20020a05600c4e5100b0040596352951sm718703wmq.5.2023.12.06.12.01.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Dec 2023 12:01:55 -0800 (PST) Message-ID: Date: Wed, 6 Dec 2023 21:01:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: PHP internals References: <04ba672f-33e1-4aae-aac4-7ad55dbc21de@gmail.com> <03311b86-b1cc-4201-99a6-907e75fb5b7d@gmail.com> In-Reply-To: <03311b86-b1cc-4201-99a6-907e75fb5b7d@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [RFC] [Discussion] Improve callbacks in ext/dom and ext/xsl From: dossche.niels@gmail.com (Niels Dossche) Hi again On 04/12/2023 23:11, Niels Dossche wrote: > Hi internals > > On 07/11/2023 20:32, Niels Dossche wrote: >> Hi internals >> >> I'm opening the discussion for my RFC "Improve callbacks in ext/dom and ext/xsl". >> RFC link: https://wiki.php.net/rfc/improve_callbacks_dom_and_xsl >> >> Kind regards >> Niels > > I have extended the RFC. The new version of the document is 0.2.0. > Now not only do I propose to extend the existing registerPhpFunctions method, I also propose to add a registerPhpFunctionsNS method. > The latter would allow for a nicer syntax and a namespace-aware API that can help to avoid name clashes with many callbacks. > > This means there are now two primary votes. > > Kind regards > Niels I've updated my RFC again based on some feedback I got privately. The new document version is 0.3.0. The change is that instead of registerPhpFunctionsNS I now have registerPhpFunctionNS that no longer uses an array argument, but has a signature of function registerPhpFunctionNS(string $namespaceURI, string $name, callable $callable): void; You can consult the diff on the wiki to get up to speed quickly. Cheers Niels