[php-src] PR #16070: Don't install headers headers which are not supposed to be published

From: Date: Thu, 26 Sep 2024 00:25:11 +0000
Subject: [php-src] PR #16070: Don't install headers headers which are not supposed to be published
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-28813@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16070 Author: cmb69 While glob style matches are convenient, we're better off to installing the headers we want to publish *explicitly*. Otherwise, we may end up with issues we cannot easily fix without breaking ABI compatibility. And we may confuse users by installing headers which they can't even use, such as Windows specific headers on non Windows systems. --- This (first) commit is not supposed to change anything; I've merely expanded the glob matches manually. I may have made a mistake or three, though – so far this is completely untested. As is, this only has two benefits: * if we add a header file, this will not be installed automatically * we can explicitly see which headers we're installing Even though we're late in the PHP-8.4 pre-release cycle, I hope that we can at least restrict the number of installed headers somewhat. Most importantly, we should not install *_arginfo.h files (see https://github.com/php/php-src/pull/15443#issuecomment-2374636324 ff). And of course, it doesn't make sense to install Windows specifc headers (e.g. TSRM/tsrm_win32.h) on a Linux system. And we likely don't want to install private headers, such as main/streams/php_streams_int.h. TODO: - [ ] exclude *_arginfo.h - [ ] exclude Windows specific headers on non Windows systems - [ ] exclude private headers

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