cvs: phpdoc /en/reference/info/functions version-compare.xml
| From: | Marcus Boerger | Date: | Sun, 01 Jun 2003 15:24:13 +0000 |
| Subject: | cvs: phpdoc /en/reference/info/functions version-compare.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969354153@lists.php.net to get a copy of this message | ||
helly Sun Jun 1 11:24:13 2003 EDT
Modified files:
/phpdoc/en/reference/info/functions version-compare.xml
Log:
Fix and add more
Index: phpdoc/en/reference/info/functions/version-compare.xml
diff -u phpdoc/en/reference/info/functions/version-compare.xml:1.4
phpdoc/en/reference/info/functions/version-compare.xml:1.5
--- phpdoc/en/reference/info/functions/version-compare.xml:1.4 Sun Jun 1 11:18:04 2003
+++ phpdoc/en/reference/info/functions/version-compare.xml Sun Jun 1 11:24:13 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/info.xml, last change in rev 1.2 -->
<refentry id="function.version-compare">
<refnamediv>
@@ -37,10 +37,12 @@
splits the results like if you were using explode('.',$ver). Then it
compares the parts starting from left to right. If a part contains
special version strings these are handled in the following order:
- <literal>dev</literal> < <literal>alpha</literal> <
- <literal>a</literal> < <literal>beta</literal> <
+ <literal>dev</literal> < <literal>alpha</literal> =
+ <literal>a</literal> < <literal>beta</literal> =
<literal>b</literal> < <literal>RC</literal> <
- <literal>pl</literal>.
+ <literal>pl</literal>. This way not only versions with different levels
+ like '4.1' and '4.1.2' can be compared but also any PHP specific version
+ containing development state.
</para>
<para>
If you specify the third optional <parameter>operator</parameter>