Deprecated function: Call-time pass-by-reference has been deprecated in drupal_load() (line 1114 of /includes/bootstrap.inc).

Drupal 7.10
php 5.3.5

Comments

7wonders’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev

The problem is line 114 of .module. It should be:

$element += file_field_widget_form($form, $form_state, $field, $instance, $langcode, $items, $delta, $element);

As per php - Passing values by reference at function call time is a deprecated feature which will be removed from PHP at some point in the near future. The acceptable method for passing a value by reference to a function is by declaring the reference in the functions definition, not at call time.

7wonders’s picture

Status: Active » Needs review

Can this change be submitted. Just an annoyance really.

levelos’s picture

Status: Needs review » Fixed

Got it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.