From 0f5c6ac3513d11cc4e17715ed9f3bdf7d9dfd7bf Mon Sep 17 00:00:00 2001
From: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
Date: Sun, 20 Oct 2024 22:22:03 +0200
Subject: [PATCH 1/2] Add PHP 8.4 changelog entry for strcspn()
---
reference/strings/functions/strcspn.xml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/reference/strings/functions/strcspn.xml b/reference/strings/functions/strcspn.xml
index 085eaccedfa5..2764a1297571 100644
--- a/reference/strings/functions/strcspn.xml
+++ b/reference/strings/functions/strcspn.xml
@@ -127,6 +127,15 @@
+
+ 8.4.0
+
+
+ Prior to PHP 8.4, when characters was the empty string,
+ the search would incorrectly stop at the first null byte in string.
+
+
+
8.0.0
From 731968b07fd3367dec00b881cc7d3107c5f2333e Mon Sep 17 00:00:00 2001
From: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
Date: Sun, 20 Oct 2024 22:58:36 +0200
Subject: [PATCH 2/2] Update reference/strings/functions/strcspn.xml
Co-authored-by: Christoph M. Becker
---
reference/strings/functions/strcspn.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/reference/strings/functions/strcspn.xml b/reference/strings/functions/strcspn.xml
index 2764a1297571..981e75884c66 100644
--- a/reference/strings/functions/strcspn.xml
+++ b/reference/strings/functions/strcspn.xml
@@ -131,7 +131,7 @@
8.4.0
- Prior to PHP 8.4, when characters was the empty string,
+ Prior to PHP 8.4.0, when characters was the empty string,
the search would incorrectly stop at the first null byte in string.