Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-43717

Behat test failure on 32bit PHP

    XMLWordPrintable

    Details

      Description

      I encountered the following Behat failure because a date used in one of the tests is set to 2050.

      04. "Available from 31 December 2050." text was not found in the page
          In step `Then I should see "Available from 31 December 2050."'.                             # behat_general::assert_page_contains_text()
          From scenario `Show activity greyed-out to students when available from date is in future'. # C:\xampp\htdocs\master_integration\completion\tests\behat\restrict_activity_by_date.feature:31
          Of feature `Restrict activity availability through date conditions'.                        # C:\xampp\htdocs\master_integration\completion\tests\behat\restrict_activity_by_date.feature
      

      This fails with 32bit PHP because of the limit of unsigned integers at 2147483648, which means the maximum date/time is Tue, 19 Jan 2038 03:14:08 GMT.

      The fix to the this problem is to change the date to one earlier than the limit, or we could just ignore the problem under with the knowledge we have about 32bit limitations and sleep well at night.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmonllao David Monllaó
              Reporter:
              salvetore Michael de Raadt
              Peer reviewer:
              Michael de Raadt
              Integrator:
              Dan Poltawski
              Tester:
              Jason Fowler
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Mar/14