Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123341 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 7E37B1A009C for ; Fri, 17 May 2024 23:15:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1715987762; bh=tsKicfN7qh4wb0LMUV6Ues/Rt0DgRGcnRJizyLb/slg=; h=Date:Subject:From:To:References:In-Reply-To:From; b=Y/GZqlbU2B/9G8QcaL5R4cUqWia/uDnOT7vLdPIawW7Gr5YgFPoKTlGDw+6zuqp/z 0QkjwPJ3JQY535STN8n5S+N8Prk/GrrllO73ZnfccVDv4iQ1v4Ie2wqWlfnyz/ICyx lRdP33DbI1kmUEvs7w/UY/+scJdf8Z5ZtCKuorK+1bIV1kAeJeNH0NJXZ1v1/dxAbQ y7CdcvqPnF7jKX+gGp28BkdIYJZ5AlU6rzb+jvk1C9bqX8j22iFNbRMU6JJfGHecp5 nbqinp30Iy7LAUHIzGuyFzh/eIzaHii8yt53ceYlD7IDyWVyxbmcpbNs0Xh78VSSpN YC3eL3hARZ91Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2E662180082 for ; Fri, 17 May 2024 23:16:02 +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-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 ; Fri, 17 May 2024 23:16:01 +0000 (UTC) Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-34dc129accaso527276f8f.0 for ; Fri, 17 May 2024 16:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715987707; x=1716592507; 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=hseihF3TjnO03NFAKQX61pndSWIlxG9OsjwxNLbjrFw=; b=M85nq5YziWQ3eyN8yJhj/zczM0O4vA3WFeHVELVOrp2iADgmWHNsSe7y7glANzhZe0 768cdk5Sfbkt7n7FVg0fDSyMbV9rNoDwCd2qqzWlIgTYaBDxLct8SCzgYfleQpCvo6TE yfOC4CWnuapvrZcCxcxYtmQHetV0G+cZ56L1kDsdfG7SXNQC03rv+HRH9l0B9KVtYgvB OdcjH3raMthXWtInyunl7iPpiYPDDTVBNJGiO1EFnqsTjIJo6tfd7Sh7nA3BpoiOvSKj 0tKFinAPsa9yRT7FfsRfgJBiKOhUqaLZqOAX6J1hBj6fwXLG5Xod2uA0JcR/pdZzvjUH eKqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715987707; x=1716592507; 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=hseihF3TjnO03NFAKQX61pndSWIlxG9OsjwxNLbjrFw=; b=mVwM5fxd5NupG3f5y6Ij8nfTv+jvXgx1MHu7oRwOK08I/KLbUPt2OT8k5wIipSWhid iIKndjkZAtQzUonbLq+1Cn80uXc9fH6G5zJ/umeF6QBPOnOtb2BKTSUlITwJ8gLrmXh7 t2LFBjRC6BaNFVQIYoQcz5yGIuSRxrfA/gy9REi72kqaB5PbgVTG+em0ab4CZZbBrYnf 4V220qss8ytTmcA0qXuMHN29p/d6+HxEUYpnJKO16C4taD0Mc4ZksFMwwgDkShx1kdGd Fpikqnvmo7OEHBdKeBslri+mgtZiVZVDlPsVt7lKpsIv/cFss1aP5NWLyfD5KQ5Z2BiP EeVA== X-Gm-Message-State: AOJu0YwKraEN/1GPBb5K0s7eHSb0LOm0BLMKSRCfMDB5MLdrmqgh7O+4 cyW0Gbs0vtBmTV8qWEQDCEkL0ZsROuuSn2EhfTihvJnqcTs0RVhs4xImOA== X-Google-Smtp-Source: AGHT+IG5kN4/aAheYqtFIFw7RNgyfUzDGLiJLza2IZa8S0qdX72tI8XyiP31YTn2T0JVUWMrgPG0pA== X-Received: by 2002:a5d:56c1:0:b0:34c:8ded:5eea with SMTP id ffacd0b85a97d-3504a737678mr17436771f8f.15.1715987706565; Fri, 17 May 2024 16:15:06 -0700 (PDT) Received: from [192.168.0.103] (178-117-134-240.access.telenet.be. [178.117.134.240]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502b79bc83sm22597371f8f.16.2024.05.17.16.15.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 May 2024 16:15:06 -0700 (PDT) Message-ID: Date: Sat, 18 May 2024 01:13:25 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PHP-DEV] Re: [RFC] [Discussion] Add openStream() to XML{Reader,Writer} To: PHP internals References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit From: dossche.niels@gmail.com (Niels Dossche) On 22/04/2024 20:41, Niels Dossche wrote: > Hi internals > > I'm opening the discussion for my RFC "Add openStream() to XML{Reader,Writer}". > RFC link: https://wiki.php.net/rfc/xmlreader_writer_streams > > Kind regards > Niels Hi internals The main complaint that kept coming up in internal communication was the choice of instance methods instead of static methods. This has been brought up in this thread too. I switched back to using static methods, and they're now called XMLReader::fromStream($stream) and XMLWriter::toStream($stream). They return the static type, which means that they'll be compatible with child classes that inherit from XML{Reader,Writer}. The child constructor will in that case be called with no arguments (i.e. it'll do `new static()` internally). The RFC text has been updated to reflect this change. New RFC text version is 0.10.0. Kind regards Niels