FunctionalTestCase::getModuleInfo may fail to match some phpinfo() values

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.15.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      FunctionalTestCase::getModuleInfo() was introduced in 5d48a1e for PHPLIB-820. The regex pattern used to match phpinfo() values will fail to match values that include non-word characters (word characters only include letters, numbers, and underscores) . This can be problematic for values that contain version strings, among other things.

      I came across this while implementing PHPC-2103, since the regex pattern originated in PHPC's test suite.

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: