[php-src] PR #16724: Fail early in *nix build script
| From: | hakre | Date: | Thu, 07 Nov 2024 17:53:32 +0000 |
| Subject: | [php-src] PR #16724: Fail early in *nix build script | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29547@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16724
Author: hakre
Adding one more [1] exit early safeguard in *nix build scripts:
Given the initial cd into the build tree fails (the project root),
the
buildconf script exits with non-zero status (failure).
Additionally quoting the pathname to cd into and the empty CD_PATH parameter for portability, also
for systems that are using a non-portable pathname [2] for the build tree.
[1]: https://github.com/php/php-src/pull/16717
[2]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_271