|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-08-01 12:02 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 03:00:01 2025 UTC |
Description: ------------ To allow correct comparison of Mozilla versioning numbers (e.g. comparing user-agent strings), the token 'pre' should be added to version_compare. Mozilla use pre to indicate a pre-alpha release (e.g. 3.0a8pre is earlier than 3.0a8). pre should have the same status as dev in /ext/standard/versioning.c Reproduce code: --------------- echo version_compare ('3.0a8pre', '3.0a8'); Expected result: ---------------- -1 Actual result: -------------- 1