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

Bug #2957 zero devision when calling getAllSectionsInformations
Submitted: 2004-12-13 14:23 UTC
From: maimonoded at yahoo dot com Assigned: matthias
Status: Closed Package: Benchmark
PHP Version: 4.3.9 OS: windows
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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 : 4 + 34 = ?

 
 [2004-12-13 14:23 UTC] maimonoded at yahoo dot com
Description: ------------ package version 1.2.1 when calling to getAllSectionsInformations after a script that runs in less then a second recives: Warning: Division by zero in \Benchmark\Profiler.php on line 173 Reproduce code: --------------- <?php require_once('Benchmark/Profiler.php'); $profiler =& new Benchmark_Profiler(false); function myFunction() { global $profiler; $profiler->enterSection('myFunction'); echo "in"; $profiler->leaveSection('myFunction'); return; } echo "out 1"; myFunction(); echo "out 2"; $info = $profiler->getAllSectionsInformations(); ?> Expected result: ---------------- out 1inout 2 Actual result: -------------- out 1inout 2 Warning: Division by zero in c:\apachefriends\xampp\php\pear\Benchmark\Profiler.php on line 173

Comments

 [2004-12-17 12:04 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-01-14 14:17 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-02-11 13:29 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-02-19 02:08 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!