Reviewed & tested by the community
Project:
SuperCron
Version:
6.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2010 at 23:32 UTC
Updated:
13 Sep 2011 at 20:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
pillarsdotnet commentedCould you explain why an array should be passed by value, not by reference?
I know this is true for objects, but I was unaware that it is also true for arrays.
Can you point to some php 5.3 docs that explain this? Or at least describe the change in behavior your patch makes?
Comment #2
john franklin commentedPre-patch: going to admin/settings/supercron displays a corrupted settings page (see image) and the error:
Post-patch: the admin/settings/supercron page works as expected and no error is displayed.
I did the patch this way because (a) it doesn't change core and (b) it is similar to other php 5.3 patches I've seen.
Comment #3
pillarsdotnet commentedOkay, so it's because that function gets called by call_user_func_array().
+1 on the patch, then.
Here's a re-roll against CVS HEAD.
Comment #4
cor3huis commentedSame for line 140
- function supercron_settings(&$form_state) {
to
+ function supercron_settings($form_state) {
I bet, just reviewing now
Comment #5
cor3huis commentedTested and it solves the issue at hand.
NOTE: manually also changed "supercron_settings(&$form_state) {" to "supercron_settings($form_state) {"
mind the &.
We hate &, it PHP not C ;)
Comment #6
pillarsdotnet commentedConfirmed that supercron_settings() also gets called via call_user_func_array().
Re-rolled patch.
Comment #7
cor3huis commentedThis part of issues looks solved, tested via the supercron.combined.patch found here http://drupal.org/node/749606#comment-4013476
Comment #8
pillarsdotnet commentedAbandoned module?
Comment #9
pillarsdotnet commentedDuplicate of #749606-16: Path to supercron.php incorrectly determined by the module code
Comment #10
Danzki commentedThis patch solves my problem.