Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.12.1

Request #16420 Debug handler function
Submitted: 2009-07-09 21:14 UTC
From: alec Assigned: jon
Status: Closed Package: Net_SMTP (version 1.3.2)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2009-07-09 21:14 UTC] alec (Aleksander Machniak)
Description: ------------ I don't like debug output with echo. I like to write debug output to log file, so I've created a patch which adds possibility to define callback function.

Comments

 [2009-07-09 21:14 UTC] alec (Aleksander Machniak)
The following patch has been added/updated: Patch Name: debug_handler.patch Revision: 1247156096 URL: http://pear.php.net/bugs/patch-display.php?bug=16420&patch=debug_handler.patch&revision=1247156096&display=1
 [2009-07-09 21:22 UTC] alec (Aleksander Machniak)
The following patch has been added/updated: Patch Name: debug_handler.patch Revision: 1247156541 URL: http://pear.php.net/bugs/patch-display.php?bug=16420&patch=debug_handler.patch&revision=1247156541&display=1
 [2009-07-10 13:41 UTC] doconnor (Daniel O'Connor)
I like it Alec! However... if you used the Log package: http://www.indelible.org/php/Log/guide.html ... I'm sure this would be much, much better.
 [2009-07-14 09:58 UTC] jon (Jon Parise)
-Status: Open +Status: Assigned -Assigned To: +Assigned To: jon
 [2009-07-14 11:44 UTC] jon (Jon Parise)
-Status: Assigned +Status: Closed
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/ I included a slightly modified version of your patch in release 1.3.3. For those interested in sending the debug output to the Log package, that's easy to do with the custom debug handler, so I decided not to introduce that dependency directly.