Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123439 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 qa.php.net (Postfix) with ESMTPS id 6369B1A009C for ; Mon, 27 May 2024 19:44:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1716839154; bh=JRXleqp6Vmdkmk4t3b+jV2ZF4ZBx1o8l5JeoYCu7Sy0=; h=Date:Subject:From:To:References:In-Reply-To:From; b=AI7/oSX0xX438tH3wkaQ1e5GChZs/CSvC1hYKv+nHvO2yH7HeU4MZx/TXJQKaK4DY ZLZOxJP4yOXoqse6bb8BNtOVgwbmG7L8s371VLRKj5Am9WNhkW+Ezuw0eupD3I77Vm ir+asvkKKxtNMcdeMuAbxg9Eq+jvmWLY1w/JiYvBFqlIH3hLouOKwT3wDQzOvnx3ZE PLQ/rJRS/DR34hFSnBoCfjfRUh9pxxRalXD35JUNlsqKQM/E9t01LgGxVw25MslSAQ FfeQBgECnodXxtCcn69WeYntSAeQoT2dU5v9vxFgVTpNj1593CRFMFR0XcYW320k66 CfqQ/hG/Qedgg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CDA02180068 for ; Mon, 27 May 2024 19:45:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,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, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) 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 ; Mon, 27 May 2024 19:45:53 +0000 (UTC) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4202ca70289so392545e9.1 for ; Mon, 27 May 2024 12:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716839093; x=1717443893; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:content-language:references :to:from:subject:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=jBze99K8331Y/103jcwuo8lB794GlX/vPVJiG+dngb0=; b=QCi+eR5OVLTkASkMo9+eX4w6ibZCWWCNiUTx7GY6xRbVjs2W2dddUKz5vtlRJHDye2 FMD0QT8AQRZPpC9Yb+iq38POZrX4Hjqi8mHfDhNEcg1O4SdNbBxbKsHvjYHyO0kbCufF VVXR/o/dLc8ZeDs3zMxTcDGc281G/9EwMWDVX2jqRXzba0QSntrNSBESVbS8ClzuJlJ/ rtp/i1rwKdAVSiDSvOpMBBeVXyjGc79ZSvnZ/E9ClzWdIzRq0dBiJIhVf06wj6H12lD8 pdB8gK+cdIxMpLFrOp9sCaxgLnUD2jnMsrGg9zUACnfrXpWBOx23T947UqISEcl/XAkA 55tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716839093; x=1717443893; h=content-transfer-encoding:in-reply-to:content-language:references :to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jBze99K8331Y/103jcwuo8lB794GlX/vPVJiG+dngb0=; b=f1LZPEcIfnq6FjFs2jHXEKMKkUM6sTSVY4KzJ3Z/gOmWCzCM7KzegskZgvbD1tzueq UFnVNS5HquhV8uquTvWIWtUjgjYuHUh+YSruDtPv/arcK57b+eawRSfwjB9G4aXKQkRY 1vtrt5DTgcBRJEtcN/KLP3R3xENVoWnIvurlUirUxdxO0xWOmoFvxKRP5VZNHoYWDOoO 1Hq9qhNYuRob2oRRiKoYI+WjWawAGXXSRf1CPxogyJk7WcsBm5wsq6TjGWbiuqTxY6Hy JuaaJnNXrkhKiKrVbXuE57l+XoEyoC5MZ2SYfx3bbS7HcjDt6RarPzTGDh4cWLCWWF1N 98OQ== X-Gm-Message-State: AOJu0Yw4u8jYeNOBGLyg401DziLteP0nyG37k0I0/j1C9vK+tduFaZV6 OBPxb2sSb5Ay3SyoS8LNjwJD6hVAhR46cyUUrkZTNOkohZJ9CvMNlLsbHg== X-Google-Smtp-Source: AGHT+IHu+VHdRT6w3vrCe6sAur08soQ5tNUqDd2nS7KQ4IKLcx2NeFcGrPLjlhPivzz2xKpZdmEqWQ== X-Received: by 2002:a05:600c:6b1a:b0:418:ed23:a9f0 with SMTP id 5b1f17b1804b1-421089dc44cmr77895815e9.18.1716839092574; Mon, 27 May 2024 12:44:52 -0700 (PDT) Received: from [192.168.0.104] (178-117-134-240.access.telenet.be. [178.117.134.240]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-421089cca86sm117451895e9.42.2024.05.27.12.44.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 May 2024 12:44:52 -0700 (PDT) Message-ID: <50273236-a200-4545-8c2f-f790323f976b@gmail.com> Date: Mon, 27 May 2024 21:43:16 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] [Discussion] Add openStream() to XML{Reader,Writer} To: PHP internals References: <721C2420-62AB-4586-AFAA-2E831C678EB5@gmail.com> <31b39501-e42f-4563-a4c6-1efafdf34512@gmail.com> Content-Language: en-US In-Reply-To: <31b39501-e42f-4563-a4c6-1efafdf34512@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit From: dossche.niels@gmail.com (Niels Dossche) On 22/05/2024 19:47, Niels Dossche wrote: > Okay, that seems reasonable to me and I can do that. > I'll make them return static and do "new static()" like I proposed with the new static method. > > For XMLWriter, I suppose we also want the static counterparts: > * `XMLWriter::toMemory()` for `(new XMLWriter)->openMemory()` > * `XMLWriter::toUri()` for `(new XMLWriter)->openUri()` > > If that sounds good I'll update the RFC. > > Niels I've now updated the RFC to include this kind of change; except I used the term Url instead of Uri. See the new subsection "Consistency" for what I propose. Niels