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

Behat test failure on 32bit PHP

XMLWordPrintable

      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.

            dmonllao David Monllaó
            salvetore Michael de Raadt
            Michael de Raadt Michael de Raadt
            Dan Poltawski Dan Poltawski
            Jason Fowler Jason Fowler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.