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:
Stefan Walk 2004-01-17 14:20:11 +00:00
parent 378b631192
commit 81ba6ffec0
2 changed files with 4 additions and 10 deletions

View file

@ -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 &lt; 0 if <parameter>str1</parameter> is less than
<parameter>str2</parameter>; &gt; 0 if <parameter>str1</parameter>

View file

@ -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 &lt; 0 if <parameter>str1</parameter> is less than
<parameter>str2</parameter>; &gt; 0 if <parameter>str1</parameter>