Closed (fixed)
Project:
Gradebook
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Feb 2010 at 02:30 UTC
Updated:
3 Jan 2014 at 01:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
humanoc commentedI am having the same problem and I don't know how to solve it.
There are a lot of patches over here, but I don't find any for these issues.
Comment #2
MGN commentedThanks for reporting this. I haven't started working with php 5.3, so I don't have a fix for this right now. I will look into it and see what I can do. If anyone else understands this problem, please post a patch.
Comment #3
pembeci commentedI am still not sure how to solve this in the best way but see #3 at #615058: Parameter 1 to admin_menu_admin_menu() expected to be a reference for a possible way of fixing this. Other solutions I saw at other issues simply removes the reference (&) from function arguments but this one seems like a better solution.
Comment #4
berdir@3
The correct fix depends on the actual error. For theme functions, it is absolutely correct and necessary to remove the &. theme functions cannot receive arguments by reference. They never could (PHP 5.2 just passes values silently by value).
The attached patch fixes three theme functions, couldn't find any more php 5.3 related issues but I don't use nor know the module. If you have more errors, post them here together with an way to reproduce them and I'll fix it.
Comment #5
MGN commentedThanks for the patch. I am going through the code and testing these changes and others to verify compatibility with php 5.3 and php < 5.3. I'll patch the 6.x-2.x-dev version as soon as I can. Thanks again!
Comment #6
MGN commentedI've verified that Berdir's patch fixes the broken committed the broken Add a new scale page with php 5.3, and everything still appears to work fine with php 5.1 as well.
Committed to 6.x-2.x-dev for further testing. I know there are other adjustments that need to be made and will commit those fixes as I find them.
@pembeci, please try the latest version and let me know if this fixes the problem that you reported...I think it will so I am marking this fixed for now.