clone $node causes a fatal error: unexpected T_VARIABLE in drupalforfirebug_preprocess.module line 25 in PHP4. This fixed it:

$node_clone = @clone($node);

Same fix repeated on line 34. Patch attached.

Comments

Garrett Albright’s picture

StatusFileSize
new809 bytes

Instead of using @ to ignore the errors that using a non-PHP4 function will cause, it's better to just find a PHP 4-compatible way to provide the same functionality. This patch leverages an already present Drupal PHP4 compatibility function to do just that.

populist’s picture

Status: Needs review » Fixed

Great. Committed to 5.x and 6.x development branches.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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