drupal_debug() uses output buffering to capture the output of $data prior to logging it to the debug file. Since PHP 4.3.0, print_r() supports returning a string, making the use of output buffering unnecessary.

Patch attached that removes output buffering and adds some Doxygen comments to the function.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Status: Needs review » Fixed

Committed. Thanks.

Status: Fixed » Closed (fixed)

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