Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-14872

Remove count versus sizeof restriction in coding guidelines

    Details

    • Type: Improvement
    • Status: Unverified Fix (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.11-RC1
    • Component/s: None
    • Labels:
      None

      Description

      We do both and `sizeof()` is an alias of `count()` and count() is faster so we really shouldn't be restricting it to sizeof() only, especially as extensions using sizeof() are apparently therefore deny-worthy

        Attachments

          Activity

            People

            • Assignee:
              MichaelC MichaelC
              Reporter:
              MichaelC MichaelC
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: