A client of mine just upgraded to the latest snapshot of PHP 5.0.5-dev and started getting errors when node_invoke() is called:
Fatal error: Only variables can be passed by reference in c:\drupal\modules\node.module on line 702.
This patch fixes the problem by assigning the value to a variable before passing it to node_invoke().
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| node_invoke.diff | 858 bytes | danielc |
Comments
Comment #1
dries commentedThis can't be true ...
Comment #2
danielc commentedWhat "can't be true?"
Fatal error: Only variables can be passed by reference in test.php on line 5
--Dan
PS: Congratulations on your wedding!
Comment #3
danielc commentedAnd I believe these references issues (here and in http://drupal.org/node/26033 and http://drupal.org/node/26034)
will also come up with the just released PHP 4.4.0.
Comment #4
sjaensch commentedI can confirm this with PHP 5.1.0b2 and current CVS, will this patch be merged?
Comment #5
dcook commentedThis happens in a lot of places throughout Drupal. So far, I've done the same thing (save the result to a temp variable, then pass the temp variable to the function) in the following places:
system.module line 25
system.module line 653
user.module line 1293
Comment #6
danielc commentedThis issue will be addressed by a mega-patch applied in http://drupal.org/node/26033.