diff --git a/language-snippets.ent b/language-snippets.ent index 14e89af33919..632242fba087 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -744,6 +744,15 @@ function.'> '> + + 8.2.0 + + This function now returns -1 or 1, + where it previously returned a negative or positive number. + + +'> + An finfo instance, returned by finfo_open.'> diff --git a/reference/strings/functions/strcasecmp.xml b/reference/strings/functions/strcasecmp.xml index 6f3d698c62ea..2938f2505b62 100644 --- a/reference/strings/functions/strcasecmp.xml +++ b/reference/strings/functions/strcasecmp.xml @@ -47,13 +47,30 @@ &reftitle.returnvalues; - Returns < 0 if string1 is less than - string2; > 0 if string1 - is greater than string2, and 0 if they are + Returns -1 if string1 is less than + string2; 1 if string1 + is greater than string2, and 0 if they are equal. + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &standard.changelog.binary-safe-string-comparison; + + + + + &reftitle.examples; diff --git a/reference/strings/functions/strcmp.xml b/reference/strings/functions/strcmp.xml index be1d2633c2b6..10863b670ab7 100644 --- a/reference/strings/functions/strcmp.xml +++ b/reference/strings/functions/strcmp.xml @@ -45,13 +45,30 @@ &reftitle.returnvalues; - Returns < 0 if string1 is less than - string2; > 0 if string1 - is greater than string2, and 0 if they are + Returns -1 if string1 is less than + string2; 1 if string1 + is greater than string2, and 0 if they are equal. + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &standard.changelog.binary-safe-string-comparison; + + + + + &reftitle.examples; diff --git a/reference/strings/functions/strnatcasecmp.xml b/reference/strings/functions/strnatcasecmp.xml index ac238122c68a..f94b5128bded 100644 --- a/reference/strings/functions/strnatcasecmp.xml +++ b/reference/strings/functions/strnatcasecmp.xml @@ -49,13 +49,30 @@ &reftitle.returnvalues; - Similar to other string comparison functions, this one returns < 0 if - string1 is less than string2 > - 0 if string1 is greater than - string2, and 0 if they are equal. + Similar to other string comparison functions, this one returns -1 if + string1 is less than string2 + 1 if string1 is greater than + string2, and 0 if they are equal. + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &standard.changelog.binary-safe-string-comparison; + + + + + &reftitle.examples; diff --git a/reference/strings/functions/strnatcmp.xml b/reference/strings/functions/strnatcmp.xml index ee0c6d0a23f5..7a7b7d7b06e2 100644 --- a/reference/strings/functions/strnatcmp.xml +++ b/reference/strings/functions/strnatcmp.xml @@ -48,13 +48,30 @@ &reftitle.returnvalues; - Similar to other string comparison functions, this one returns < 0 if - string1 is less than string2; > - 0 if string1 is greater than - string2, and 0 if they are equal. + Similar to other string comparison functions, this one returns -1 if + string1 is less than string2; + 1 if string1 is greater than + string2, and 0 if they are equal. + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &standard.changelog.binary-safe-string-comparison; + + + + + &reftitle.examples; diff --git a/reference/strings/functions/strncasecmp.xml b/reference/strings/functions/strncasecmp.xml index d0c2e6e752d3..0ad3163b5595 100644 --- a/reference/strings/functions/strncasecmp.xml +++ b/reference/strings/functions/strncasecmp.xml @@ -56,12 +56,29 @@ &reftitle.returnvalues; - Returns < 0 if string1 is less than - string2; > 0 if string1 is - greater than string2, and 0 if they are equal. + Returns -1 if string1 is less than + string2; 1 if string1 is + greater than string2, and 0 if they are equal. + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &standard.changelog.binary-safe-string-comparison; + + + + + &reftitle.examples; diff --git a/reference/strings/functions/strncmp.xml b/reference/strings/functions/strncmp.xml index 2d89f80e7593..a2ac813f1299 100644 --- a/reference/strings/functions/strncmp.xml +++ b/reference/strings/functions/strncmp.xml @@ -59,13 +59,30 @@ &reftitle.returnvalues; - Returns < 0 if string1 is less than - string2; > 0 if string1 - is greater than string2, and 0 if they are + Returns -1 if string1 is less than + string2; 1 if string1 + is greater than string2, and 0 if they are equal. + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &standard.changelog.binary-safe-string-comparison; + + + + + &reftitle.examples; diff --git a/reference/strings/functions/substr-compare.xml b/reference/strings/functions/substr-compare.xml index 5b743d68afb1..6abb7d84fe04 100644 --- a/reference/strings/functions/substr-compare.xml +++ b/reference/strings/functions/substr-compare.xml @@ -79,9 +79,9 @@ &reftitle.returnvalues; - Returns < 0 if haystack from position - offset is less than needle, > - 0 if it is greater than needle, and 0 if they are equal. + Returns -1 if haystack from position + offset is less than needle, 1 + if it is greater than needle, and 0 if they are equal. If offset is equal to (prior to PHP 7.2.18, 7.3.5) or greater than the length of haystack, or the length is set and is less than 0, @@ -102,6 +102,7 @@ + &standard.changelog.binary-safe-string-comparison; 8.0.0