History | Log In     View a printable version of the current page.  
We are currently focused especially on Moodle 2.0, Moodle 1.9.x bugs and Moodle 1.9.x testing.    Confused? Lost? Please read this introduction to the Tracker.
Issue Details (XML | Word | Printable)

Key: MDL-15410
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Petr Škoda
Reporter: Joseph Rézeau
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Moodle

Require PHP 5.2.4 instead of 5.2.0 in HEAD

Created: 25/Jun/08 06:20 PM   Updated: 05/Nov/08 04:47 AM
Component/s: Course
Affects Version/s: 2.0
Fix Version/s: None

Issue Links:
Duplicate
 

Participants: Eloy Lafuente (stronk7), Joseph Rézeau, Mauno Korpelainen, Mike Churchward, Olli Savolainen and Petr Škoda
Security Level: None


 Description  « Hide
Using Moodle 2.0 dev (Build: 20080625)
impossible to display Participants list, with debug on I get the following errors:
---------
Notice: Indirect modification of overloaded property moodle_session::$flextable has no effect in moodle\lib\tablelib.php on line 360

Notice: Indirect modification of overloaded property moodle_session::$flextable has no effect in moodle\lib\tablelib.php on line 361

Notice: Indirect modification of overloaded property moodle_session::$flextable has no effect in moodle\lib\tablelib.php on line 362

Notice: Indirect modification of overloaded property moodle_session::$flextable has no effect in moodle\lib\tablelib.php on line 363

Notice: Indirect modification of overloaded property moodle_session::$flextable has no effect in moodle\lib\tablelib.php on line 364

Notice: Indirect modification of overloaded property moodle_session::$flextable has no effect in moodle\lib\tablelib.php on line 365

Notice: Indirect modification of overloaded property moodle_session::$flextable has no effect in moodle\lib\tablelib.php on line 368

Warning: Attempt to assign property of non-object in moodle\lib\tablelib.php on line 417

Warning: array_reverse() [function.array-reverse]: The argument should be an array in moodle\lib\accesslib.php on line 3469

Warning: Illegal offset type in isset or empty in moodle\lib\accesslib.php on line 467

Warning: Attempt to assign property of non-object in moodle\lib\adodb\adodb.inc.php on line 1820

Warning: implode() [function.implode]: Bad arguments. in moodle\lib\accesslib.php on line 1170

Fatal error: Cannot redeclare _rs2serialize() (previously declared in moodle\lib\adodb\adodb-csvlib.inc.php:34) in moodle\lib\adodb\adodb-csvlib.inc.php on line 79

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Škoda - 25/Jun/08 06:56 PM
this should be already fixed several days ago, could you please test fresh cvs checkout?

Joseph Rézeau - 25/Jun/08 08:06 PM
I just did an update (I'm using ECLIPSE CVS), and am still getting the error messages...
Joseph

Petr Škoda - 26/Jun/08 02:02 AM
what PHP version are you using?
What exact version is your lib/sessionlib.php?

Joseph Rézeau - 26/Jun/08 04:30 AM
using PHP Version 5.2.0
<?php //$Id: sessionlib.php,v 1.2 2008/06/22 11:56:01 skodak Exp $

Petr Škoda - 26/Jun/08 08:12 AM
hmm, this is caused by bug in php 5.2.0 - http://bugs.php.net/bug.php?id=39449 - fixed in PHP 5.2.1 :-(

There are two options:
1/ try to workaround all those hundreds of nasty bugs in PHP 5.2.0, 5.2.1, 5.2.2 and 5.2.3
2/ or raise the minimum PHP version to at least PHP 5.2.4 for Moodle 2.0

my +1 for option 2)


Eloy Lafuente (stronk7) - 26/Jun/08 08:20 AM
my +1 too (5.2.4 was released 30-August-2007)

Ciao :-)

Joseph Rézeau - 26/Jun/08 03:06 PM
OK, I will upgrade to PHP 5.2.4,
Thanks
Joseph

Joseph Rézeau - 26/Jun/08 09:58 PM
OK, just installed PHP 5.2.5 and the problem has disappeared,
Joseph

Petr Škoda - 21/Jul/08 10:06 PM
Solutions are:
1/ support old & buggy PHP version - session related code would need to be rewritten again
2/ require PHP 5.2.4 or later


Mike Churchward - 21/Jul/08 10:19 PM
Something should be decided soon. Moodle environment checks reports that Moodle requires PHP 5.2.0. But according to this bug and related bugs, it will not run without a minimum of 5.2.4. If this is the case, we really should be specifying and checking for that version.

Petr Škoda - 21/Jul/08 11:38 PM
yes, we should decide this asap

Petr Škoda - 01/Aug/08 05:50 PM
PHP version requirement changed in HEAD? now waiting for Eloy to confirm needed changes in other branches - is admin/enviroment.xml the only thing that needs to be done or something more on moodle.org?

Petr Škoda - 01/Aug/08 06:11 PM
done, PHP 5.2.4 is now minimal req for Moodle 2.0

please note that we could in theory lower it again, but anybody who suggests it will be responsible for testing and bugfixing in PHP 5.2.0-5.2.3 ;-)

Olli Savolainen - 04/Nov/08 11:02 PM
Debian stable only includes 5.2.0, so this is bound to be a big issue for those who

- are running Moodle on a hosted system and thus cannot upgrade and

- don't have the skills to compile PHP by themselves.

http://packages.debian.org/stable/web/php5

Petr Škoda - 04/Nov/08 11:13 PM
Olli, does that mean you are volunteering to do all the workarounds, bugfixing and testing?

Mauno Korpelainen - 05/Nov/08 04:47 AM
Olli, I have done the normal upgrading to my Debian stable (Etch) a couple of times and current version of php is probably 5.2.6

Upgrading has never taken many minutes...