Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
install system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Apr 2010 at 07:13 UTC
Updated:
3 Jan 2014 at 01:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
chx commentedPHP 5.3.1 (cli) (built: Feb 2 2010 01:00:04)
drush and core both HEAD.
Comment #2
drewish commentedsubscribing. ran into this today.
Comment #3
chx commented#777138: Strict warning: Only variables should be passed by reference in install_settings_form() (line 849 of /includes/install.core.inc)
Comment #4
chx commentedStill happens. :(
Comment #5
marvil07 commentedI changed the parameters at function definitions to avoid the
&on the non-modified values at two functions.Comment #6
marvil07 commentedComment #7
moshe weitzman commentedNice debugging.
Comment #8
webchickWow. That's esoteric. Nice find!
Committed to HEAD. Thanks!
Comment #9
David_Rothstein commentedNice debugging! But the fix isn't correct - why should $form_state and $install_state have a different behavior? With $form_state the similar bug was fixed in the calling code, and we need to do that here as well. Also, the committed patch doesn't fix install_settings_form() which has the same exact bug...
Please review #756034: install.core.inc make impossible to use cli install because of install_settings_form signature which attempts to fix this in the calling code.
The commit here didn't break anything since $install_state wasn't being modified, but the intention is that it can be modified - again, just like $form_state. I'm not sure it's a rule, but it seems like we always use
&$form_statein all/most form functions for consistency sake (even when we aren't modifying it), so we should probably do the same thing with $install_state. If so, we should roll this patch back once the other issue gets in.Comment #10
David_Rothstein commentedchx also posted #778888: Form functions can't take arguments by reference which is related to this issue.
Comment #11
marvil07 commentedActually, chx suggest me to review where is the exact problem, because like David suggests the real problem is not on install functions, but install is really big ;-)
So, I tried the patch at #3 in #756034: install.core.inc make impossible to use cli install because of install_settings_form signature, and it also solves the problem, and I think in a cleaner way(aka solving the real problem), so I just rerolled the patch to revert my change and apply his change.
Thanks for taking care of this :-)
Comment #13
David_Rothstein commentedLooks good to me - thanks! I think the patch failed to apply because of the line that changed the $Id$ - not sure how that got in there, but here is a reroll that leaves it out.
Comment #14
moshe weitzman commentedyou guys rock.
Comment #15
webchickWow. Great sleuthing, folks!
Committed to HEAD! :D
Comment #16
chx commentedAlmost but the comment has a small problem: you are not passing an object by reference that's quite a pointless exercise they are passed around by handle anyways which is 99.99% of the time is good enough. You pass in an array as in the code.
Comment #17
dries commentedCommitted to CVS HEAD. Thanks.