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

Out of memory issue in code sniffer call for extensions

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-RC2
    • Fix Version/s: 3.1.0-RC3
    • Component/s: Test Suite
    • Labels:
      None

      Description

      https://travis-ci.org/phpbb-de/phpbb-ext-movemessage/jobs/29771214#L716

      phpBB/vendor/bin/phpcs -s --extensions=php --standard=build/code_sniffer/ruleset-php-extensions.xml '--ignore=phpBB/ext/phpbbde/movemessage/tests/*' '--ignore=phpBB/ext/phpbbde/movemessage/vendor/*' phpBB/ext/phpbbde/movemessage

      PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 1068236755 bytes) in /home/travis/build/phpBB3/phpBB/vendor/squizlabs/php_codesniffer/CodeSniffer/File.php on line 2606
       
      PHP Stack trace:
       
      PHP 1. {main}() /home/travis/build/phpBB3/phpBB/vendor/squizlabs/php_codesniffer/scripts/phpcs:0
       
      PHP 2. PHP_CodeSniffer_CLI->process() /home/travis/build/phpBB3/phpBB/vendor/squizlabs/php_codesniffer/scripts/phpcs:37
       
      PHP 3. PHP_CodeSniffer->process() /home/travis/build/phpBB3/phpBB/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php:614
       
      PHP 4. PHP_CodeSniffer->processFile() /home/travis/build/phpBB3/phpBB/vendor/squizlabs/php_codesniffer/CodeSniffer.php:488
       
      PHP 5. PHP_CodeSniffer->_processFile() /home/travis/build/phpBB3/phpBB/vendor/squizlabs/php_codesniffer/CodeSniffer.php:1340
       
      PHP 6. PHP_CodeSniffer_File->start() /home/travis/build/phpBB3/phpBB/vendor/squizlabs/php_codesniffer/CodeSniffer.php:1460
       
      PHP 7. phpbb_Sniffs_Namespaces_UnusedUseSniff->process() /home/travis/build/phpBB3/phpBB/vendor/squizlabs/php_codesniffer/CodeSniffer/File.php:506
       
      PHP 8. PHP_CodeSniffer_File->getTokensAsString() /home/travis/build/phpBB3/build/code_sniffer/phpbb/Sniffs/Namespaces/UnusedUseSniff.php:158

      Problem seems to be related to the use stament in the event listener.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            nicofuma nicofuma
            Reporter:
            nickvergessen Joas Schilling
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development