Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123319 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 28FFE1A009C for ; Tue, 14 May 2024 18:49:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1715712630; bh=/G43F9tweLgWOxuCThllMS4goj/GASDR6+TTL1fvpXs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=GGaUIOvMuLNfuTujFMKUp/9iIYZdeoEbSHUGnEjLsJx3Y9v2KTgqC2rzhCxektHVT MOIZKCeQnX03B6uPpo4Ao1Z6dp/2PRR09S2AjyYAQIFf+al9tKbZBz8sI6DPGHlrbt rFBhtIN6vOA/n1ibNlSLEPGiOR0a2OT7DG4gLTBZuah4LMA9kU1+pKpwEGBzTj2NNq pIUPhfOnkOb954iMj+6qTOVhOxg5cAeMcEH4sGxp/jbhCa8mnVsQOIAyF9jAZViYL7 /TvSWvTEyTFioWiX/e/5AW0AcJ0X7Ir4WCwobrh6Bbgu4B+QOZbWLFwewUNYVT5Txl sxDwRIO4K0xuQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4618C180062 for ; Tue, 14 May 2024 18:50:30 +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-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 ; Tue, 14 May 2024 18:50:29 +0000 (UTC) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4200ee78f34so26470085e9.3 for ; Tue, 14 May 2024 11:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715712577; x=1716317377; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=axzc9mNx+zY/PhBmOa17NrFAuWaMxqjIBf8R4dYam3Q=; b=YiO6mibT9aeh7Pw1+xwaPQ+jbTbALj7mia1bhhk4yJmcNQ2798EAlc42J1n7QZ6Wnn uOXJJOhohlSmNatF1e+ByPDUyB+sjfbvzL296kB7Edf8t5mMHuih6CdjC6uN0ecnyVYh 1xAgzfRZud8phgnsBulbbdVpaOkucY0q0g2LLuUVo4I2QCcD7r11oiY4wOqO4PNDI/wj LRYLhQ7xjhEbSOpzccKhYwXxc5bIFN6YLQaUGIRiOv6oF6HargObbXn73p0hXLsTSLJH ZmlwY0uJLGoogEvil1TMIhRSL4SO9u2YLHQX89QTTfC/gvKDjywi7POfakEM0wIyEPOL mPCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715712577; x=1716317377; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=axzc9mNx+zY/PhBmOa17NrFAuWaMxqjIBf8R4dYam3Q=; b=MDE9PZwwtLRexpTMo1EcCo/tWAYTquT/5tUowUQkDnkPgybzolKwc6h2rlqHmtS60C Efo9cjF6owqIsJWopAqAyajHx3smgdjTCZ2hkiaFOL63rMWshfWuOWfOEDIhxWi9vkJA Why5RbqtDGO278VYlWKUuq892DJDSEgrbYea/n01Hmft+mdIFq/WsMUP/bIWkp2QdGW8 f7FfjX6AXrqCVRsr/Tql3nlC8UHc/o1CYvLiJDGECGYa44+QFJ1OR3llunik8NTQykD+ OeMTn0Q3ufoSKz36Z0i9u0Hz2oD8ubMx1bj7iU3IQyLte+Aw1t24446cC2eTPBL88fRq wNpQ== X-Gm-Message-State: AOJu0YwQBGQ/cgV1+7IDwRGZyHmNEPZXCyWyhQQuWXvdmRG9cqxK/H13 qvfSrnpCtKfUUx/Jbdsv58pjdKsxsy5UKjpj6hMgF08dD1/NcIAHUxxcUw== X-Google-Smtp-Source: AGHT+IH6hyzID9jn+MI3ObZY87S6hUnUSMK3iyDjL58mS6aAxhRum5c78YnmAk/tcjxk+wmB+iOHXw== X-Received: by 2002:a05:600c:314e:b0:41f:c83d:5ba8 with SMTP id 5b1f17b1804b1-41feac59e95mr91263945e9.32.1715712576432; Tue, 14 May 2024 11:49:36 -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-41fccfe1532sm200042275e9.46.2024.05.14.11.49.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 May 2024 11:49:36 -0700 (PDT) Message-ID: <9001d467-528f-4f93-9dcf-cfa27ef3713b@gmail.com> Date: Tue, 14 May 2024 20:47:53 +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] Stricter requirements for libxml To: Derick Rethans Cc: PHP internals References: <42857f2f-fef7-447f-b7a8-ef92180e4768@gmail.com> <56c7973d-be03-3945-8326-ff55fcda0216@php.net> Content-Language: en-US In-Reply-To: <56c7973d-be03-3945-8326-ff55fcda0216@php.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit From: dossche.niels@gmail.com (Niels Dossche) On 14/05/2024 11:36, Derick Rethans wrote: > On Fri, 10 May 2024, Niels Dossche wrote: > >> Hi internals >> >> Libxml is used as the underlying library for many PHP extensions. >> Interestingly, libxml can be built with supports for various features disabled. >> E.g. you can build libxml without XPath, Schemas, HTML, ... support. >> In that case, these features are unavailable in PHP. E.g. some classes may not be defined or functions may emit a warning instead of performing an action. >> >> I'm thinking of proposing an RFC that puts stricter requirements on libxml at build time. >> That would make such features a requirement during PHP's build process. >> This will simplify maintenance and will also make sure that users can rely on these functionalities to always be available. >> >> Please let me know what you think. > > That seems sensible. Did you find any Linux distribution that actively > disables these features, or is this a "just in case" kind of change? > > cheers, > Derick I am not aware of a distro that disables these features. This is a "just in case" thing. The fact that I didn't find one is also a motivation to make this change: why should we make the code more complicated to support a configuration that doesn't seem to be used? :) Kind regards Niels