Moodle

Continue button omits an SCO

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.8.3
  • Fix Version/s: None
  • Component/s: SCORM
  • Labels:
    None
  • Environment:
    This occurs since PHP 5.2.4, it works on PHP 5.2.3 and older PHP versions
  • Affected Branches:
    MOODLE_18_STABLE

Description

With PHP version 5.2.4 the "Continue" button omits an SCO in the player. This occurs since PHP version 5.2.4, here is the PHP bug report:

http://bugs.php.net/bug.php?id=42839

At and of the report there is a new note:

"Note: Unless the array is referenced, foreach operates on a copy of the
specified array and not the array itself. foreach has some side effects
on the array pointer. Don't rely on the array pointer during or after
the foreach without resetting it."

This navigation issue is occurred, because the code is relying on the array pointer at this line in (scorm_12lib.php):

$nextsco = next($scoes);

Kind Regards
Szazo

Issue Links

Activity

Hide
Kristof Neirynck added a comment -

MDL-12679 is a duplicate of MDL-13093

Show
Kristof Neirynck added a comment - MDL-12679 is a duplicate of MDL-13093

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: