Skip to content

Commit 9e63e20

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix GH-15515: Configure error grep illegal option q (#15516)
2 parents 89daa83 + 63841ba commit 9e63e20

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

NEWS

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PHP NEWS
55
- Core:
66
. Fixed bug GH-15408 (MSan false-positve on zend_max_execution_timer).
77
(zeriyoshi)
8+
. Fixed bug GH-15515 (Configure error grep illegal option q). (Peter Kokot)
89

910
- MySQLnd:
1011
. Fixed bug GH-15432 (Heap corruption when querying a vector). (cmb,

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ esac
264264

265265
dnl Detect musl libc
266266
AC_MSG_CHECKING([whether we are using musl libc])
267-
if command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl
267+
if command -v ldd >/dev/null && ldd --version 2>&1 | grep ^musl >/dev/null 2>&1
268268
then
269269
AC_MSG_RESULT(yes)
270270
AC_DEFINE([__MUSL__], [1], [Define when using musl libc])

ext/posix/config.m4

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ if test "$PHP_POSIX" = "yes"; then
1414

1515
dnl Skip pathconf and fpathconf check on musl libc due to limited implementation
1616
dnl (first argument is not validated and has different error).
17-
AS_IF([command -v ldd >/dev/null && ldd --version 2>&1 | grep -q "^musl"],[],
17+
AS_IF([command -v ldd >/dev/null && ldd --version 2>&1 | grep ^musl >/dev/null 2>&1],
18+
[],
1819
[AC_CHECK_FUNCS(pathconf fpathconf)])
1920

2021
AC_MSG_CHECKING([for working ttyname_r() implementation])

0 commit comments

Comments
 (0)