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

Out of memory issue in code sniffer call for extensions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.0-RC3
    • 3.1.0-RC2
    • Test Suite
    • None

      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.

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

              Created:
              Updated:
              Resolved: