Download & Extend

Unnecessary output buffering in drupal_debug().

Project:Devel
Version:8.x-1.x-dev
Component:devel
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

AttachmentSizeStatusTest resultOperations
devel-drupal-debug-output-buffering-D7.patch1.22 KBIdleFAILED: [[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 details
devel-drupal-debug-output-buffering-D8.patch1.12 KBIdleFAILED: [[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 details

Comments

#1

Status:needs review» fixed

Committed. Thanks.

#2

Status:fixed» closed (fixed)

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