Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 May 2009 at 15:58 UTC
Updated:
15 Sep 2009 at 11:30 UTC
We introduced a few new PHP 5.3 warnings, this patch simply removes all the & that are not allowed anymore. See #360605: PHP 5.3 Compatibility for more information about that change.
- theme_vertical_tabs(&$element) (no need to pass in stuff to theme functions by reference, it doesn't work anyway.
- Lots of &$node. Because $node is an object, we don't need the & anymore, because a object is passed by reference by default with PHP 5
Note: I still need to run the whole testsuite on PHP 5.3 RC2, I've only partially tested some tests like Node and Comment, that failed without these changes. Uploading the patch so it can run on PHP 5.2.. a PHP 5.3 test slave would be cool :)
| Comment | File | Size | Author |
|---|---|---|---|
| more_php53_fixes.patch | 16.92 KB | berdir |
Comments
Comment #1
chx commentedThis is a good change even if we do not care about PHP5.3 but we do, obviously
Comment #2
dries commentedRan the tests myself. Everything works and the code changes looked good. Committed to CVS HEAD. Thanks!
Comment #4
donquixote commentedadding tags
Comment #5
donquixote commentedHow can this be fixed for D6 ?
PHP 4 does not pass objects as pointers. So what can we do for &$node in D6?
Comment #6
berdirThis does not need to be fixed for D6. The actual errors for D6 are either fixed in the other patch and it is not possible to remove the & from objects in D6 code.