[php-src] PR #20506: ext/{lexbor,uri}: Fix build/install interface

From: Date: Sun, 16 Nov 2025 14:32:37 +0000
Subject: [php-src] PR #20506: ext/{lexbor,uri}: Fix build/install interface
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-34073@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20506 Author: petk As much as I dislike adding another global include flag to php-config script or to install even more headers, this is now needed to fix then also, I believe. Changes in the PR: - Currently, ext/uri API is designed in a way that no 3rd party uriparser headers are needed to use ext/uri headers in some other extension. - ext/lexbor now also installs all 3rd party ext/lexbor/lexbor headers. They are currently needed by ext/dom and ext/uri. - Added lexbor include flag to php-config script. - The ext/uri/uriparser/include can be (currently) only specified for the ext/uri sources and not globally for all other extensions. - Creating redundant ext/lexbor/lexbor/css/tokenizer directory at configure step removed (this was probably used in some older lexbor version). --- In the future it would be much cooler to go similar to how the ext/pcre/pcre2lib is done regarding the headers. Or in current case, how the ext/uri is done - like a perfect example of using 3rd party library, having it bundled (optionally) but no uriparser headers need to be installed to use PHP C API. BTW, to use PHP, a list of all include flags is getting extremely long. This is completely redundant I believe and could be simplified to only includes="-I$include_dir" at some point if there is some goal to have a nice PHP C API: ``` includes="-I$include_dir -I$include_dir/main -I$include_dir/TSRM -I$include_dir/Zend -I$include_dir/ext -I$include_dir/ext/date/lib -I$include_dir/ext/lexbor" ```

« previous php.git-pulls (#34073) next »