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.

Files: 
CommentFileSizeAuthor
devel-drupal-debug-output-buffering-D8.patch1.12 KBmr.baileys
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch devel-drupal-debug-output-buffering-D8.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
devel-drupal-debug-output-buffering-D7.patch1.22 KBmr.baileys
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch devel-drupal-debug-output-buffering-D7.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Comments

Status:Needs review» Fixed

Committed. Thanks.

Status:Fixed» Closed (fixed)

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