Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123317 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 F40AF1A009C for ; Tue, 14 May 2024 09:36:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1715679421; bh=CqEHZFdXbdSfRQhM2Ny3YxMzvZMbYyqoVSCz9Lv87Ts=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=IuCGWI7BZbfSAMfhIvVhdKFGIKO0VvE2rZ/6T4aiI3ni/n6zUHC8GrFXk7c0hSz95 cBAgDUTx/bowXVYwTsgBw1hmXAqkg5evctHasbJSUMn/RhjObecvRSVm/fz1ac1pDM DQNq/Bv+7NYfTJrwOASjPLiFW8ydjUqXzCAYFL9+IApouMgmzKHgUPM8Prtx3g5qif 7RTLhgx0Apd2Q616qvPXUzSxLC4VoaqF+TYVqJ6ceKn5qCmskx1mrM+pfIQ5ckxEj4 RWjRkfvyJ9a/tZ5QdC56uBFdc4SIbQkBwUoN8JKU1GQDCH2jCwW8keI2heUB7zl85k ZBI7GlL/RrvLQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 078CD18003B for ; Tue, 14 May 2024 09:37:00 +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=3.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,SPF_HELO_PASS, SPF_SOFTFAIL,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 xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Tue, 14 May 2024 09:36:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1715679366; bh=CqEHZFdXbdSfRQhM2Ny3YxMzvZMbYyqoVSCz9Lv87Ts=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=XXz4KMzf7hXquU0JGjW/RkoZVN0DdPemKWXjJdL5fk13RyCEVYRZSQvLrYp/Y9/x8 MFmPTnJuDT/adsTbxPBqhXC1yin7eYbUNTIhmKx/GFIYpu4PK0xs06PuQNwlNeNzIV tVROa4NfMqgCHJhAGo9jur6nW0PPhHRYFFlb3y98XYMdjFAMWDce5SmZU0HPeu37er nmLqg318WOX+94KfTVmE/xCgu2bZr+TyERWb8WoxPNCnuEK+SEpX6UTF5YwAjD4nC0 eNFaRCrt6owXMgX1K0HnGJROWP2uI22sS2pUV5jgKgl/5CDB0YIWUKg60c5mlAYU3y 4ySKFFDDZujow== Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id C0F2D10C4F7; Tue, 14 May 2024 10:36:06 +0100 (BST) Date: Tue, 14 May 2024 10:36:06 +0100 (BST) To: Niels Dossche cc: PHP internals Subject: Re: [PHP-DEV] Stricter requirements for libxml In-Reply-To: <42857f2f-fef7-447f-b7a8-ef92180e4768@gmail.com> Message-ID: <56c7973d-be03-3945-8326-ff55fcda0216@php.net> References: <42857f2f-fef7-447f-b7a8-ef92180e4768@gmail.com> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII From: derick@php.net (Derick Rethans) 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