Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PHP 8 compatibility issues #84

Merged
merged 26 commits into from
Feb 7, 2019
Merged

Fix PHP 8 compatibility issues #84

merged 26 commits into from
Feb 7, 2019

Commits on Feb 7, 2019

  1. Configuration menu
    Copy the full SHA
    35be713 View commit details
    Browse the repository at this point in the history
  2. Remove track_errors=1 ini option

    This is no longer available in PHP 8, and generates an error on
    startup.
    nikic committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    446bda9 View commit details
    Browse the repository at this point in the history
  3. Replace continue in switch with break

    break and "continue 2" are the same in this case and the code mixes
    both. I'm using break here for simplicity.
    nikic committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    de70ed8 View commit details
    Browse the repository at this point in the history
  4. Make test_PEAR_Dependency2::singleton() method static

    Because it is called statically
    nikic committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    47d80e3 View commit details
    Browse the repository at this point in the history
  5. Remove /e flag in preg_match_all

    This flag hasn't been supported since PHP 7, but more importantly
    it doesn't even apply to preg_match_all in the first place.
    nikic committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    2af2980 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bf07026 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    72d3c6f View commit details
    Browse the repository at this point in the history
  8. Make PEAR_Dependency2::normalizeDep() static

    Also adjust one call to it, though this is not strictly necessary.
    nikic committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    1488617 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    550c0a6 View commit details
    Browse the repository at this point in the history
  10. Make PEAR_Dependency2::_getExtraString() static

    Also make calls to it static (not strictly necessary) and drop an
    object instantiation that becomes unnecessary due to that.
    nikic committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    585246e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    b8d5595 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    5aa5e9c View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    87896ef View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    3b7d55b View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    b3db06d View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    7cf175f View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    553b7a2 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    8c5f6ae View commit details
    Browse the repository at this point in the history
  19. Make some test methods static

    nikic committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    ac4abec View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    7a8ac62 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    9d48b4c View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    793f0f8 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    5d4ffa0 View commit details
    Browse the repository at this point in the history
  24. Make PEAR_Common::analyzeSourceCode() static

    There are many non-static uses of that one, which I'm not touching.
    They aren't a problem.
    nikic committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    d9916ac View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    eb357e4 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    25061ef View commit details
    Browse the repository at this point in the history