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

Test suite does not run on php 5.3

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-dev
    • Fix Version/s: 3.1.0-a1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Description

      athena% php -d include_path=.:/home/pie/apps/git-phpunit-bundle ~pie/apps/git-phpunit-bundle/phpunit.php                 
       
      Fatal error: Could not convert the script from the detected encoding "UTF-32LE" to a compatible encoding in /home/pie/apps/phpbb/tests/test_framework/phpbb_functional_test_case.php on line 10
      

      I installed pecl-phar (2.0.0.rc2) but that did not change anything.

        Issue Links

          Activity

          Hide
          igorw Igor Wiedler [X] (Inactive) added a comment -

          I assume you mean "pecl-phar". Before PHP 5.3, phar was a pecl extension. Since the PHP 5.3 release it has been a core extension. The pecl extension (see here http://pecl.php.net/package/phar) is outdated.

          You need to compile PHP with the '--enable-phar' flag. There are a few issues that can occur with getting phar files to work, see here: http://silex.sensiolabs.org/doc/usage.html#pitfalls

          Show
          igorw Igor Wiedler [X] (Inactive) added a comment - I assume you mean "pecl-phar". Before PHP 5.3, phar was a pecl extension. Since the PHP 5.3 release it has been a core extension. The pecl extension (see here http://pecl.php.net/package/phar ) is outdated. You need to compile PHP with the '--enable-phar' flag. There are a few issues that can occur with getting phar files to work, see here: http://silex.sensiolabs.org/doc/usage.html#pitfalls
          Hide
          Oleg Oleg [X] (Inactive) added a comment -

          Yes, I meant pecl-phar. If I indeed need to compile php to get phar then the test suite must run without phar support (in which case functional tests would have to be skipped, obviously).

          I should have suhosin patch so maybe that's the problem.

          Show
          Oleg Oleg [X] (Inactive) added a comment - Yes, I meant pecl-phar. If I indeed need to compile php to get phar then the test suite must run without phar support (in which case functional tests would have to be skipped, obviously). I should have suhosin patch so maybe that's the problem.

            People

            • Assignee:
              Oleg Oleg [X] (Inactive)
              Reporter:
              Oleg Oleg [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development