Hello,

attaching a patch that fixes a PHP 5.3 warning about a value passed as reference to securepages_prevent_hijack_form_alter().

Thanks,
Antonio

Comments

Status: Needs review » Needs work

The last submitted patch, securepages_prevent_hijack-php5.3--0.patch, failed testing.

akanouras’s picture

Status: Needs work » Active
Issue tags: +php5.3

Umm, are these tests failing anyway for this module?

There are calls to undefined functions and all kinds of other weirdness in there.

damienmckenna’s picture

Status: Active » Needs work

hook_form_alter's second argument is supposed to be passed by reference, so why is the patch needed?

berdir’s picture

- Dependencies need to be defined with 'dependencies' => array('some_module') in getInfo().

- Patch is not needed, instead, you need to figure out which module is calling hook_form_alter the wrong way. These are usually modules with ajax/ahah form elements which then use drupal_alter('form', $form, $form_state).

grendzy’s picture

Status: Needs work » Closed (works as designed)

closing, per #3.