From 8735e3b2916287918389e9f34f8a1fc7a6eb38bb Mon Sep 17 00:00:00 2001 From: Karoly Negyesi Date: Wed, 29 Jul 2009 19:06:49 +0000 Subject: [PATCH] listing everything version compare knows about git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@286529 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/info/functions/version-compare.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/reference/info/functions/version-compare.xml b/reference/info/functions/version-compare.xml index d01a2e4685..e41c084fcc 100644 --- a/reference/info/functions/version-compare.xml +++ b/reference/info/functions/version-compare.xml @@ -27,12 +27,14 @@ 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: + any string not found in this list < dev < alpha = a < beta = - b < RC < - pl. 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. + b < RC = + rc < # < + pl = p. 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.