File tree 8 files changed +135
-23
lines changed
reference/strings/functions
8 files changed +135
-23
lines changed Original file line number Diff line number Diff line change @@ -744,6 +744,15 @@ function.</simpara></warning>'>
744
744
</row >
745
745
'>
746
746
747
+ <!ENTITY standard.changelog.binary-safe-string-comparison '<row xmlns =" http://docbook.org/ns/docbook" >
748
+ <entry >8.2.0</entry >
749
+ <entry >
750
+ This function now returns <literal >-1</literal > or <literal >1</literal >,
751
+ where it previously returned a negative or positive number.
752
+ </entry >
753
+ </row >
754
+ '>
755
+
747
756
<!-- FileInfo -->
748
757
<!ENTITY fileinfo.parameters.finfo '<para xmlns =" http://docbook.org/ns/docbook" >An <classname >finfo</classname > instance, returned by <function >finfo_open</function >.</para >'>
749
758
<!ENTITY fileinfo.changelog.finfo-object '<row xmlns =" http://docbook.org/ns/docbook" >
Original file line number Diff line number Diff line change 47
47
<refsect1 role =" returnvalues" >
48
48
&reftitle.returnvalues;
49
49
<para >
50
- Returns < 0 if <parameter >string1</parameter > is less than
51
- <parameter >string2</parameter >; > 0 if <parameter >string1</parameter >
52
- is greater than <parameter >string2</parameter >, and 0 if they are
50
+ Returns < literal >-1</ literal > if <parameter >string1</parameter > is less than
51
+ <parameter >string2</parameter >; < literal >1</ literal > if <parameter >string1</parameter >
52
+ is greater than <parameter >string2</parameter >, and < literal >0</ literal > if they are
53
53
equal.
54
54
</para >
55
55
</refsect1 >
56
56
57
+ <refsect1 role =" changelog" >
58
+ &reftitle.changelog;
59
+ <informaltable >
60
+ <tgroup cols =" 2" >
61
+ <thead >
62
+ <row >
63
+ <entry >&Version; </entry >
64
+ <entry >&Description; </entry >
65
+ </row >
66
+ </thead >
67
+ <tbody >
68
+ &standard.changelog.binary-safe-string-comparison;
69
+ </tbody >
70
+ </tgroup >
71
+ </informaltable >
72
+ </refsect1 >
73
+
57
74
<refsect1 role =" examples" >
58
75
&reftitle.examples;
59
76
<para >
Original file line number Diff line number Diff line change 45
45
<refsect1 role =" returnvalues" >
46
46
&reftitle.returnvalues;
47
47
<para >
48
- Returns < 0 if <parameter >string1</parameter > is less than
49
- <parameter >string2</parameter >; > 0 if <parameter >string1</parameter >
50
- is greater than <parameter >string2</parameter >, and 0 if they are
48
+ Returns < literal >-1</ literal > if <parameter >string1</parameter > is less than
49
+ <parameter >string2</parameter >; < literal >1</ literal > if <parameter >string1</parameter >
50
+ is greater than <parameter >string2</parameter >, and < literal >0</ literal > if they are
51
51
equal.
52
52
</para >
53
53
</refsect1 >
54
54
55
+ <refsect1 role =" changelog" >
56
+ &reftitle.changelog;
57
+ <informaltable >
58
+ <tgroup cols =" 2" >
59
+ <thead >
60
+ <row >
61
+ <entry >&Version; </entry >
62
+ <entry >&Description; </entry >
63
+ </row >
64
+ </thead >
65
+ <tbody >
66
+ &standard.changelog.binary-safe-string-comparison;
67
+ </tbody >
68
+ </tgroup >
69
+ </informaltable >
70
+ </refsect1 >
71
+
55
72
<refsect1 role =" examples" >
56
73
&reftitle.examples;
57
74
<para >
Original file line number Diff line number Diff line change 49
49
<refsect1 role =" returnvalues" >
50
50
&reftitle.returnvalues;
51
51
<para >
52
- Similar to other string comparison functions, this one returns < 0 if
53
- <parameter >string1</parameter > is less than <parameter >string2</parameter > >
54
- 0 if <parameter >string1</parameter > is greater than
55
- <parameter >string2</parameter >, and 0 if they are equal.
52
+ Similar to other string comparison functions, this one returns < literal >-1</ literal > if
53
+ <parameter >string1</parameter > is less than <parameter >string2</parameter >
54
+ < literal >1</ literal > if <parameter >string1</parameter > is greater than
55
+ <parameter >string2</parameter >, and < literal >0</ literal > if they are equal.
56
56
</para >
57
57
</refsect1 >
58
58
59
+ <refsect1 role =" changelog" >
60
+ &reftitle.changelog;
61
+ <informaltable >
62
+ <tgroup cols =" 2" >
63
+ <thead >
64
+ <row >
65
+ <entry >&Version; </entry >
66
+ <entry >&Description; </entry >
67
+ </row >
68
+ </thead >
69
+ <tbody >
70
+ &standard.changelog.binary-safe-string-comparison;
71
+ </tbody >
72
+ </tgroup >
73
+ </informaltable >
74
+ </refsect1 >
75
+
59
76
<refsect1 role =" examples" >
60
77
&reftitle.examples;
61
78
<para >
Original file line number Diff line number Diff line change 48
48
<refsect1 role =" returnvalues" >
49
49
&reftitle.returnvalues;
50
50
<para >
51
- Similar to other string comparison functions, this one returns < 0 if
52
- <parameter >string1</parameter > is less than <parameter >string2</parameter >; >
53
- 0 if <parameter >string1</parameter > is greater than
54
- <parameter >string2</parameter >, and 0 if they are equal.
51
+ Similar to other string comparison functions, this one returns < literal >-1</ literal > if
52
+ <parameter >string1</parameter > is less than <parameter >string2</parameter >;
53
+ < literal >1</ literal > if <parameter >string1</parameter > is greater than
54
+ <parameter >string2</parameter >, and < literal >0</ literal > if they are equal.
55
55
</para >
56
56
</refsect1 >
57
57
58
+ <refsect1 role =" changelog" >
59
+ &reftitle.changelog;
60
+ <informaltable >
61
+ <tgroup cols =" 2" >
62
+ <thead >
63
+ <row >
64
+ <entry >&Version; </entry >
65
+ <entry >&Description; </entry >
66
+ </row >
67
+ </thead >
68
+ <tbody >
69
+ &standard.changelog.binary-safe-string-comparison;
70
+ </tbody >
71
+ </tgroup >
72
+ </informaltable >
73
+ </refsect1 >
74
+
58
75
<refsect1 role =" examples" >
59
76
&reftitle.examples;
60
77
<para >
Original file line number Diff line number Diff line change 56
56
<refsect1 role =" returnvalues" >
57
57
&reftitle.returnvalues;
58
58
<para >
59
- Returns < 0 if <parameter >string1</parameter > is less than
60
- <parameter >string2</parameter >; > 0 if <parameter >string1</parameter > is
61
- greater than <parameter >string2</parameter >, and 0 if they are equal.
59
+ Returns < literal >-1</ literal > if <parameter >string1</parameter > is less than
60
+ <parameter >string2</parameter >; < literal >1</ literal > if <parameter >string1</parameter > is
61
+ greater than <parameter >string2</parameter >, and < literal >0</ literal > if they are equal.
62
62
</para >
63
63
</refsect1 >
64
64
65
+ <refsect1 role =" changelog" >
66
+ &reftitle.changelog;
67
+ <informaltable >
68
+ <tgroup cols =" 2" >
69
+ <thead >
70
+ <row >
71
+ <entry >&Version; </entry >
72
+ <entry >&Description; </entry >
73
+ </row >
74
+ </thead >
75
+ <tbody >
76
+ &standard.changelog.binary-safe-string-comparison;
77
+ </tbody >
78
+ </tgroup >
79
+ </informaltable >
80
+ </refsect1 >
81
+
65
82
<refsect1 role =" examples" >
66
83
&reftitle.examples;
67
84
<para >
Original file line number Diff line number Diff line change 59
59
<refsect1 role =" returnvalues" >
60
60
&reftitle.returnvalues;
61
61
<para >
62
- Returns < 0 if <parameter >string1</parameter > is less than
63
- <parameter >string2</parameter >; > 0 if <parameter >string1</parameter >
64
- is greater than <parameter >string2</parameter >, and 0 if they are
62
+ Returns < literal >-1</ literal > if <parameter >string1</parameter > is less than
63
+ <parameter >string2</parameter >; < literal >1</ literal > if <parameter >string1</parameter >
64
+ is greater than <parameter >string2</parameter >, and < literal >0</ literal > if they are
65
65
equal.
66
66
</para >
67
67
</refsect1 >
68
68
69
+ <refsect1 role =" changelog" >
70
+ &reftitle.changelog;
71
+ <informaltable >
72
+ <tgroup cols =" 2" >
73
+ <thead >
74
+ <row >
75
+ <entry >&Version; </entry >
76
+ <entry >&Description; </entry >
77
+ </row >
78
+ </thead >
79
+ <tbody >
80
+ &standard.changelog.binary-safe-string-comparison;
81
+ </tbody >
82
+ </tgroup >
83
+ </informaltable >
84
+ </refsect1 >
85
+
69
86
<refsect1 role =" examples" >
70
87
&reftitle.examples;
71
88
<para >
Original file line number Diff line number Diff line change 79
79
<refsect1 role =" returnvalues" >
80
80
&reftitle.returnvalues;
81
81
<para >
82
- Returns < 0 if <parameter >haystack</parameter > from position
83
- <parameter >offset</parameter > is less than <parameter >needle</parameter >, >
84
- 0 if it is greater than <parameter >needle</parameter >, and 0 if they are equal.
82
+ Returns < literal >-1</ literal > if <parameter >haystack</parameter > from position
83
+ <parameter >offset</parameter > is less than <parameter >needle</parameter >, < literal >1</ literal >
84
+ if it is greater than <parameter >needle</parameter >, and < literal >0</ literal > if they are equal.
85
85
If <parameter >offset</parameter > is equal to (prior to PHP 7.2.18, 7.3.5) or
86
86
greater than the length of <parameter >haystack</parameter >, or the
87
87
<parameter >length</parameter > is set and is less than 0,
102
102
</row >
103
103
</thead >
104
104
<tbody >
105
+ &standard.changelog.binary-safe-string-comparison;
105
106
<row >
106
107
<entry >8.0.0</entry >
107
108
<entry >
You can’t perform that action at this time.
0 commit comments