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

Bug #13958 When a phpt tests exit() or die() xdebug coverage is not generated
Submitted: 2008-05-22 12:36 UTC
From: izi Assigned: dufuz
Status: Closed Package: PEAR (version CVS)
PHP Version: 5.2.6 OS:
Roadmaps: 1.8.0alpha1    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 22 + 34 = ?

 
 [2008-05-22 12:36 UTC] izi (David Jean Louis)
Description: ------------ When running phpunit over phpt test suite, no coverage info is generated for phpt code that explicitely exit() or die(), the attached patch fixes the problem by using the register_shutdown_function() php function.

Comments

 [2008-06-24 18:41 UTC] dufuz (Helgi Þormar Þorbjörnsson)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.