mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix doc bug #62586 (version_compare, case sensitivity) by adding a note about
case sensitivity. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326719 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
15bd95f5d1
commit
90ffb95c20
1 changed files with 9 additions and 0 deletions
|
@ -145,6 +145,15 @@ if (version_compare(PHP_VERSION, '5.0.0', '<')) {
|
|||
lower than their final release counterparts (like 5.3.0).
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
Special version strings such as <literal>alpha</literal> and
|
||||
<literal>beta</literal> are case sensitive. Version strings from arbitrary
|
||||
sources that do not adhere to the PHP standard may need to be lowercased
|
||||
via <function>strtolower</function> before calling
|
||||
<function>version_compare</function>.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
|
|
Loading…
Reference in a new issue