note 72666 rejected from function.version-compare by nlopess
| From: | nlopess@php.net | Date: | Tue, 30 Jan 2007 15:21:01 +0000 |
| Subject: | note 72666 rejected from function.version-compare by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-122359@lists.php.net to get a copy of this message | ||
Note Submitter: vin100 at forx dot fr
----
There is a problem with PHP 5.2
<?php
version_compare('2.0 beta 2', '2.0 beta 3'); // return -1 OK
version_compare('2.0 beta 2', '2.0 RC 1'); // return 1 BAD
?>
The second should return -1