Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-942

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.15.0
    • Affects Version/s: None
    • Component/s: 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:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: