cvs: pear /MP3_Id Id.php package.xml

From: Date: Tue, 04 Oct 2005 10:58:24 +0000
Subject: cvs: pear /MP3_Id Id.php package.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35258@lists.php.net to get a copy of this message
alexmerz Tue Oct 4 06:58:24 2005 EDT Modified files: /pear/MP3_Id package.xml Id.php Log: prepare new release, fix #5396 http://cvs.php.net/diff.php/pear/MP3_Id/package.xml?r1=1.12&r2=1.13&ty=u Index: pear/MP3_Id/package.xml diff -u pear/MP3_Id/package.xml:1.12 pear/MP3_Id/package.xml:1.13 --- pear/MP3_Id/package.xml:1.12 Thu Aug 25 10:04:02 2005 +++ pear/MP3_Id/package.xml Tue Oct 4 06:58:20 2005 @@ -19,6 +19,21 @@ </maintainers> <release> + <version>1.2.0RC3</version> + <date>2005-10-04</date> + <state>beta</state> + <notes> + fix Bug #5396, thanks to waranza at gmail dot com + </notes> + <filelist> + <dir name="/" baseinstalldir="MP3"> + <file role="php">Id.php</file> + </dir> + </filelist> + </release> + + <changelog> + <release> <version>1.2.0RC2</version> <date>2005-08-25</date> <state>beta</state> @@ -31,9 +46,7 @@ <file role="php">Id.php</file> </dir> </filelist> - </release> - - <changelog> + </release> <release> <version>1.2.0RC1</version> <date>2005-08-25</date> http://cvs.php.net/diff.php/pear/MP3_Id/Id.php?r1=1.10&r2=1.11&ty=u Index: pear/MP3_Id/Id.php diff -u pear/MP3_Id/Id.php:1.10 pear/MP3_Id/Id.php:1.11 --- pear/MP3_Id/Id.php:1.10 Thu Aug 25 10:04:02 2005 +++ pear/MP3_Id/Id.php Tue Oct 4 06:58:20 2005 @@ -11,7 +11,7 @@ // | Authors: Sandy McArthur Jr. <Leknor@Leknor.com> | // +----------------------------------------------------------------------+ // -// $Id: Id.php,v 1.10 2005/08/25 14:04:02 alexmerz Exp $ +// $Id: Id.php,v 1.11 2005/10/04 10:58:20 alexmerz Exp $ // // Uncomment the folling define if you want the class to automatically @@ -932,7 +932,11 @@ $this->lengths = (int)$s; $this->samples = ceil($this->lengths * $this->frequency); - $this->frames = ceil($this->samples / $this->samples_per_frame); + if(0 != $this->samples_per_frame) { + $this->frames = ceil($this->samples / $this->samples_per_frame); + } else { + $this->frames = 0; + } $this->musicsize = ceil($this->lengths * $this->bitrate * 1000 / 8); } else { $this->samples = $this->samples_per_frame * $this->frames;

« previous php.pear.cvs (#35258) next »