get_module_info() test function may fail to match some phpinfo() values

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 1.15.0
    • Affects Version/s: 1.5.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The get_module_info() helper for tests dates back to f4cf0fe for PHPC-1113.

      The regex pattern used to match phpinfo() values only matches word characters (i.e. letters, numbers, and underscores). This can be problematic for values that contain version strings, among other things.

      This ticket came up while working on PHPC-2103, and has a corresponding PHPLIB ticket since this old code was recently lifted to that project.

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

              Created:
              Updated:
              Resolved: