Skip to content

Conversation

hakre
Copy link
Contributor

@hakre hakre commented Nov 7, 2024

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.

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]: php#16717
[2]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_271
@hakre hakre force-pushed the build-fail-early-PHP-8.4 branch from 1666fbf to 3e57d58 Compare November 7, 2024 20:32
@cmb69 cmb69 closed this in 329890c Nov 9, 2024
@cmb69
Copy link
Member

cmb69 commented Nov 9, 2024

Thank you! Applied to PHP-8.4 and merged up.

@hakre hakre deleted the build-fail-early-PHP-8.4 branch November 9, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants