Skip to content

Commit 11da498

Browse files
committedNov 9, 2024
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fail early in *nix configuration build script
2 parents 80dd5a0 + c075546 commit 11da498

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed
 

‎NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ PHP NEWS
55
- Calendar:
66
. Fixed jdtogregorian overflow. (David Carlier)
77

8+
- Core:
9+
. Fail early in *nix configuration build script. (hakre)
10+
811
- FPM:
912
. Fixed GH-16432 (PHP-FPM 8.2 SIGSEGV in fpm_get_status). (Jakub Zelenka)
1013

‎build/genif.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ header_list=
3232
olddir=$(pwd)
3333

3434
# Go to project root.
35-
cd $(CDPATH= cd -- "$(dirname -- "$0")/../" && pwd -P)
35+
cd "$(CDPATH='' cd -- "$(dirname -- "$0")/../" && pwd -P)" || exit
3636

3737
module_ptrs="$(echo $extensions | $AWK -f ./build/order_by_dep.awk)"
3838

‎buildconf

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ force=0
88
debug=0
99

1010
# Go to project root.
11-
cd $(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)
11+
cd "$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd -P)" || exit
1212

13-
php_extra_version=$(grep '^AC_INIT(' configure.ac)
13+
php_extra_version=$(grep '^AC_INIT(' configure.ac) || exit
1414
case "$php_extra_version" in
1515
*-dev*)
1616
dev=1

‎scripts/dev/credits

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Generate credits_*.h headers from the ext/*/CREDITS and sapi/*/CREDITS files.
44

55
# Go to project root directory
6-
cd $(CDPATH= cd -- "$(dirname -- "$0")/../../" && pwd -P)
6+
cd "$(CDPATH='' cd -- "$(dirname -- "$0")/../../" && pwd -P)" || exit
77

88
awkprog='
99
BEGIN { FS = "\n|\r\n|\r"; RS = "" }

‎scripts/dev/genfiles

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ SED=${SED:-sed}
4141
MAKE=${MAKE:-make}
4242

4343
# Go to project root.
44-
cd $(CDPATH= cd -- "$(dirname -- "$0")/../../" && pwd -P)
44+
cd "$(CDPATH='' cd -- "$(dirname -- "$0")/../../" && pwd -P)" || exit
4545

4646
# Check required bison version from the configure.ac file.
4747
required_bison_version=$($SED -n 's/PHP_PROG_BISON(\[\([0-9\.]*\)\].*/\1/p' configure.ac)

‎scripts/dev/makedist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [[ $($tar --version) == *"bsdtar"* ]]; then
1515
fi
1616

1717
# Go to project root directory.
18-
cd $(CDPATH= cd -- "$(dirname -- "$0")/../../" && pwd -P)
18+
cd "$(CDPATH='' cd -- "$(dirname -- "$0")/../../" && pwd -P)" || exit
1919

2020
# Process options and arguments.
2121
while :; do

0 commit comments

Comments
 (0)
Please sign in to comment.