PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Bug #5396

division by zero on line 935

Details

Submitted2005-09-14 10:06 UTC
Fromwaranza at gmail dot com
Assignedalexmerz
StatusClosed
PackageMP3_ID
PHP Version4.3.10
OSWindows
Roadmaps(Not assigned)

Comments

[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;

[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