After implementing the upgrade of the update status module, I get the following php error:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /path/to/drupal/sites/all/modules/update_status/update_status.module on line 727

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /path/to/drupal/sites/all/modules/update_status/update_status.module on line 729

PHP version 5.2.6, Drupal version 5.21

CommentFileSizeAuthor
#1 687368-1.call-time-pass-by-ref.patch1.6 KBdww

Comments

dww’s picture

Assigned: Unassigned » dww
Status: Active » Needs review
StatusFileSize
new1.6 KB

Argh! :( I thought we caught all this kind of stuff after weeks of testing 5.x-2.x-dev. Ugh. Sorry about that!

Try this...

Tobi2000’s picture

Ok, the error message is gone with the patch applied.

dww’s picture

Version: 5.x-2.4 » 5.x-2.x-dev
Status: Needs review » Fixed

Committed to DRUPAL-5--2. Ugh, wonder if I should ship 5.x-2.5 for this. :( Was it a fatal error for you or just a notice/warning?

Tobi2000’s picture

It was just a notice, but for some reason, I couldn't suppress it even by setting the appropriate error reporting option. So even though it wasn't literally fatal, it was not possible to live with it. If there aren't any other people with the same problem, then that might have been a product of my specific setup.

dww’s picture

there's a php.ini setting that allows this (as explained in the error message itself):

If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file

It's still lame, I don't know how that code slipped in. :( Came from #162788: Include modules that aren't enabled, but I don't know why we didn't see any trouble. Alas...

promes’s picture

Original comment removed. I am sorry, I forgot to run the update-script!

dww’s picture

Already got a duplicate bug report about this: #688182: Call-time pass-by-reference has been deprecated so I just released 5.x-2.5.

Status: Fixed » Closed (fixed)

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