[php-src] PHP-8.4: Fix macOS compatibility of update-lexbor.sh
Máté Kocsis via Tim Düsterhus <[email protected]>
| Newsgroups | gmane.comp.php.cvs.general |
|---|---|
| Message-ID | <[email protected]> |
Author: Máté Kocsis (kocsismate)
Committer: Tim Düsterhus (TimWolla)
Date: 2026-07-12T19:52:09+02:00
Commit: https://github.com/php/php-src/commit/f40c8f2b982143e1e3ec135ce3ebb6453fdd2113
Raw diff: https://github.com/php/php-src/commit/f40c8f2b982143e1e3ec135ce3ebb6453fdd2113.diff
Fix macOS compatibility of update-lexbor.sh
[Tim: Extracted this as a new commit from GH-22699]
Changed paths:
M ext/dom/lexbor/patches/update-lexbor.sh
Diff:
diff --git a/ext/dom/lexbor/patches/update-lexbor.sh b/ext/dom/lexbor/patches/update-lexbor.sh
index b5eff3846e11..6645f5d0e1e5 100755
--- a/ext/dom/lexbor/patches/update-lexbor.sh
+++ b/ext/dom/lexbor/patches/update-lexbor.sh
@@ -19,7 +19,10 @@ git clone "$LEXBOR_REPO" "$LEXBOR_TMP_DIR"
(cd "$LEXBOR_TMP_DIR" && git checkout "$LEXBOR_REF")
# Apply patches
-mapfile -t patches < <(ls "$PATCHES_DIR"/*.patch)
+patches=()
+for f in "$PATCHES_DIR"/*.patch; do
+ [ -e "$f" ] && patches+=("$f")
+done
cd "$LEXBOR_TMP_DIR"
for patch in "${patches[@]}"; do
if ! git am -3 "$patch"; then