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

Bug #5396 division by zero on line 935
Submitted: 2005-09-14 10:06 UTC
From: waranza at gmail dot com Assigned: alexmerz
Status: Closed Package: MP3_ID
PHP Version: 4.3.10 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 : 41 + 3 = ?

 
 [2005-09-14 10:06 UTC] waranza at gmail dot com
Description: ------------ To prevent division by zero on line 935 I change the line: $this->frames = ceil($this->samples / $this->samples_per_frame); to: if($this->samples_per_frame!=0) $this->frames = ceil($this->samples / $this->samples_per_frame); if($this->samples_per_frame==0) $this->frames = 0;

Comments

 [2005-10-04 10:59 UTC] alexmerz at php dot net
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/MP3_ID