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

Fix Session Test Issues with CHAR vs. VARCHAR.

    Details

    • Type: Task
    • Status: Unverified Fix
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.9-RC1
    • Component/s: None
    • Labels:
      None
    • Environment:
      PostgreSQL 8.4.7 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5, 64-bit

      Description

      PHPUnit 3.5.10 by Sebastian Bergmann.
       
      .............................................................   61 / 1070 (  5%)
      .............................................................  122 / 1070 ( 11%)
      ..................................IIIIIIIIIIIIIIIIIIIIIIIIIII  183 / 1070 ( 17%)
      IIIIIIIIIIIIIIIIIIIIIIIFFF...................................  244 / 1070 ( 22%)
      .............................................................  305 / 1070 ( 28%)
      .............................................................  366 / 1070 ( 34%)
      .............................................................  427 / 1070 ( 39%)
      .............................................................  488 / 1070 ( 45%)
      .............................................................  549 / 1070 ( 51%)
      .............................................................  610 / 1070 ( 57%)
      .............................................................  671 / 1070 ( 62%)
      .............................................................  732 / 1070 ( 68%)
      .............................................................  793 / 1070 ( 74%)
      .............................................................  854 / 1070 ( 79%)
      .............................................................  915 / 1070 ( 85%)
      .............................................................  976 / 1070 ( 91%)
      ............................................................. 1037 / 1070 ( 96%)
      ...................
       
      Time: 47 seconds, Memory: 40.75Mb
       
      There were 3 failures:
       
      1) phpbb_session_continue_test::test_session_begin_valid_session with data set #0 ('bar_session', '4', 'user agent', '127.0.0.1', array(array('anon_session', 1), array('bar_session', 4)), array(), 'If a request comes with a valid session id with matching user agent and IP, no new session should be created.')
      If a request comes with a valid session id with matching user agent and IP, no new session should be created.
      Failed asserting that two arrays are equal.
      --- Expected
      +++ Actual
      @@ @@
       Array
       (
           [0] => Array
               (
      -            [session_id] => anon_session
      +            [session_id] => anon_session                    
                   [session_user_id] => 1
               )
       
           [1] => Array
               (
      -            [session_id] => bar_session
      +            [session_id] => bar_session                     
                   [session_user_id] => 4
               )
       
       )
       
       
      2) phpbb_session_continue_test::test_session_begin_valid_session with data set #1 ('anon_session', '4', 'user agent', '127.0.0.1', array(array('__new_session_id__', 1), array('bar_session', 4)), array(array('1', NULL), array(NULL, NULL), array('__new_session_id__', NULL)), 'If a request comes with a valid session id and IP but different user id and user agent, a new anonymous session is created and the session matching the supplied session id is deleted.')
      If a request comes with a valid session id and IP but different user id and user agent, a new anonymous session is created and the session matching the supplied session id is deleted.
      Failed asserting that two arrays are equal.
      --- Expected
      +++ Actual
      @@ @@
               (
      -            [session_id] => bar_session
      +            [session_id] => bar_session                     
                   [session_user_id] => 4
               )
       
       )
      
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            bantu Andreas Fischer
            Reporter:
            bantu Andreas Fischer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development