Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10263

Add phpbb_version_compare() wrapper for version_compare()

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.10-RC1
    • 3.0.9
    • None
    • None

      [23:26:37] <nickvergessen> can someone confirm var_dump(version_compare('1.1.0-A2', '1.1.0-B1')); == 1 and var_dump(version_compare('1.1.0-a2', '1.1.0-b1')); == -1
      [23:28:03] <igorw> yep
      [23:28:11] <nickvergessen> stupid
      [23:31:26] <bantu> that's interessting
      [23:31:37] <bantu> *interesting
      [23:31:46] <bantu> and is the reason why we have strtolower() in our checks
      [23:32:44] <bantu> hmm
      [23:32:57] <bantu> maybe we should have phpbb_version_compare() as a wrapper with proper documentation
      [23:33:09] <bantu> such tiny things are rather annoying
      [23:33:31] <naderman> bantu: create a ticket so we don't forget?

            bantu Andreas Fischer [X] (Inactive)
            bantu Andreas Fischer [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: