Closed (fixed)
Project:
Vertical Tabs
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Oct 2009 at 18:45 UTC
Updated:
20 Nov 2009 at 23:10 UTC
After upgrading to PHP 5.3, I get the following message on node/edit:
warning: Parameter 1 to theme_vertical_tabs() expected to be a reference, value given in /home/drupal/drupal-6.14/includes/theme.inc on line 617.
This complete breaks the display functionality of Vertical Tabs. When I fix the expected reference, all is well.
| Comment | File | Size | Author |
|---|---|---|---|
| expected_reference_value_given.patch | 567 bytes | Grayside |
Comments
Comment #1
avpadernoI can confirm the patch works.
I am not sure why the parameter is declared to be passed by reference, when the parameter is not modified.
Comment #2
thekevinday commentedI agree with this patch and it does solve my problem.
With the drupal php 5.3 patches, the theme function now calls:
where it used to call
Looking at the vertical_tabs code, the theme_vertical_tabs function still has its parameters passed by reference.
Looking into the vertical tab theme function, it does not seem to make any writes to the argument that is passed by reference.
Therefore, the above patch should be safe to apply for php-5.3 systems.
There is a problem with php 4.
The same exact issues are discussed here in the views project::
http://drupal.org/node/452384
This specific thread mentions the php 4 compatibility issue:
http://drupal.org/node/452384#comment-2097968
Comment #3
dave reidComment #4
dave reidFixed in CVS (http://drupal.org/cvs?commit=285290). Thanks!