#329 potential issues with global keyword in PHP 5.5

all_active_versions
open
None
8
2014-03-10
2014-03-10
No

As showed by the current issue with the language library (see rev14751), there are potential scope issues with the global variables declared using the "global" keyword. This seem to have appeared in PHP 5.5.

We need to check the whole claroline kernel and replace the use of the "global" keyword by the use of the $GLOBALS super global variable whenever possible !

Discussion

  • Frederic Minne

    Frederic Minne - 2014-03-10
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,3 @@
     As showed by the current issue with the language library (see rev14751), there are potential scope issues with the global variables declared using the "global" keyword. This seem to have appeared in PHP 5.5.
    
    -It is strongly needed to check this issue in the whole claroline kernel and replace the use of the "global" keyword by the use of the $GLOBALS super global variable whenever possible.
    +We need to check the whole claroline kernel and replace the use of the "global" keyword by the use of the $GLOBALS super global variable whenever possible !
    
     
  • Frederic Minne

    Frederic Minne - 2014-03-10
    • assigned_to: Frederic Minne
     
  • Frederic Minne

    Frederic Minne - 2014-03-10

    Should be solved by rev14752 on the trunk

     

Log in to post a comment.