A number of PHP Strict warnings (due to inconsistencies in function definitions) have been fixed in the Views module:

#893128-61: Fix E_STRICT notices - method declaration compatibility with init(), pre_render(), _validate() and _submit() with PHP 5.4.x

One of those inconsistencies was in the views_field_view_handler_field_view::pre_render() function, where $values should have been passed by reference, but was not. A patch has been committed to fix this inconsistency in Views 6.x-2.x and 6.x-3.x, but has not yet made it into a new release of Views.

So anyone using a -dev version of Views for Drupal 6 right now, or a future release of Views for Drupal 6 (6.x-2.19+ or 6.x-3.2+, once they are released), would get the following PHP strict warning when using Views Field View:

Strict warning: Declaration of
views_field_view_handler_field_view::pre_render() should be compatible
with views_handler_field::pre_render(&$values) in views_include_handler() (line 76 of /path/to/drupal/sites/all/modules/views/includes/handlers.inc).

This happens because $values is not passed by reference in the views_field_view_handler_field_view::pre_render() function.

CommentFileSizeAuthor
#1 strict-warning-2533156-1.patch570 bytesrjay
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rjay’s picture

Status: Active » Needs review
FileSize
570 bytes

Here's a patch that updates the declaration of the views_field_view_handler_field_view::pre_render() function so $values is passed by reference.

jibran’s picture

Status: Needs review » Closed (outdated)

Drupal 6 compatible versions of the module are not supported anymore.