[php-src] PR #17074: Fix GH-17067: glob:// wrapper doesn't cater to CWD for ZTS builds
| From: | cmb69 | Date: | Fri, 06 Dec 2024 22:26:51 +0000 |
| Subject: | [php-src] PR #17074: Fix GH-17067: glob:// wrapper doesn't cater to CWD for ZTS builds | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29919@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17074
Author: cmb69
glob(3) doesn't know the virtual CWD of PHP, so we need to pass an absolute path
for ZTS builds. In lack of a reusable routine, we copy the code from glob() and adapt
as needed.
---
In my opinion, there should be some routine (likely in zend_virtual_cwd) which makes a path
absolute, but without normalization or even getting the real path (just quickly prepending the VCWD
if necessary). I'm not quite convinced that we should introduce that routine for stable
branches, though.