mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix Bug #26940 (strncmp using the length of the shorter string)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@149028 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
378b631192
commit
81ba6ffec0
2 changed files with 4 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.66 -->
|
||||
<refentry id="function.strncasecmp">
|
||||
<refnamediv>
|
||||
|
@ -21,10 +21,7 @@
|
|||
This function is similar to <function>strcasecmp</function>, with
|
||||
the difference that you can specify the (upper limit of the)
|
||||
number of characters (<parameter>len</parameter>) from each
|
||||
string to be used in the comparison. If any of the strings is
|
||||
shorter than <parameter>len</parameter>, then the length of that
|
||||
string will be used for the comparison.
|
||||
</para>
|
||||
string to be used in the comparison. </para>
|
||||
<simpara>
|
||||
Returns < 0 if <parameter>str1</parameter> is less than
|
||||
<parameter>str2</parameter>; > 0 if <parameter>str1</parameter>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.38 -->
|
||||
<refentry id="function.strncmp">
|
||||
<refnamediv>
|
||||
|
@ -20,10 +20,7 @@
|
|||
This function is similar to <function>strcmp</function>, with the
|
||||
difference that you can specify the (upper limit of the) number
|
||||
of characters (<parameter>len</parameter>) from each string to be
|
||||
used in the comparison. If any of the strings is shorter than
|
||||
<parameter>len</parameter>, then the length of that string will
|
||||
be used for the comparison.
|
||||
</para>
|
||||
used in the comparison.</para>
|
||||
<simpara>
|
||||
Returns < 0 if <parameter>str1</parameter> is less than
|
||||
<parameter>str2</parameter>; > 0 if <parameter>str1</parameter>
|
||||
|
|
Loading…
Reference in a new issue