[development] problem with PHP 5 and node_load

Peter Wolanin pwolanin at gmail.com
Sat Sep 30 23:16:33 UTC 2006

I created an issue for this PHP5 problem with node_load and posted 5.0
and 4.7 patches that use drupal_clone():


In response to Scott McLewin's solution:

>I encountered a similar problem when changing over to php5.  I don't
>know that this was the only answer or even the best answer, but I
>changed that line to read:
>$node = node_load(array('nid' => $form_values['nid']));

looking at node_load, I think this will force the node to be re-loaded
from the DB (including all the hook_view and hook_nodeapi calls),
since the cached object is only returned if a numeric parameter is
passed.  Thus, it may solve the problem but creates a potential
performance hit.


More information about the development mailing list