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

ACM null caching driver class is named with the reserved word 'null'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2.0-a1
    • 3.1.4-RC1, 3.2.0-dev
    • Caching (ACM), Other
    • None

      As per the PHP class basics, The class name can be any valid label, provided it is not a PHP reserved word.
      Reserved words are including the lists of keywords, predefined classes and constants, and the list of other reserved words.
      'null' is a part of the Predefined constants list, so a class shoudn't be named with this word.
      https://github.com/phpbb/phpbb/blob/3.1.x/phpBB/phpbb/cache/driver/null.php#L19

      class null extends \phpbb\cache\driver\base

            Marc Marc
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: