PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Bug #1210

Missing include_once !

Details

Submitted2004-04-14 16:56 UTC
Fromsylvinus at lynucs dot com
Assignedalexmerz
StatusClosed
PackageMP3_ID
PHP Version4.3.4
OSdebian
Roadmaps(Not assigned)

Comments

[2004-04-14 16:56 UTC] sylvinus at lynucs dot com

Description:
------------
Line 32 of Id.php :

include("PEAR.php");

=> "Cannot redeclare..."

You must change this with include_once() because if you use other PEAR libs in the same script before MP3_ID you get the fatal error.

Thanks for releasing quickly a fixed version !

sylvain

[2004-04-20 05:23 UTC] pear-dev at mocsnik dot hu

You must use require_once, to be exact (according to PEAR CS; unconditionally included class file).

Already reported in bug #774

This bug has already been fixed in the CVS, however a new release might not came out. In the meantime, try to get the latest version of the package from the CVS.
http://cvs.php.net/cvs.php/pear/MP3_Id

Regards,
Norbert Mocsnik

[2004-04-21 10:40 UTC] alexmerz at php dot net

Thank you for your bug report. This issue has already been fixed
in the latest released version of the package, which you can download at
http://pear.php.net/packages.php