PEAR is archived and read-only

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

Home » Bug #1116

_read_v1() s/$file/$this->file

Details

Submitted2004-04-02 13:47 UTC
Frompear at trullala dot de
Assignedalexmerz
StatusClosed
PackageMP3_ID
PHP VersionIrrelevant
OSWin32 (XP)
Roadmaps(Not assigned)

Comments

[2004-04-02 13:47 UTC] pear at trullala dot de

Description:
------------
In function _read_v1() (line 412 and 415) filename should be $this->file instead of $file. $file is not defined in this function.

Reproduce code:
---------------
<?php
include("MP3/Id.php");
$filename='c:\non\existent\file.mp3';
$deepstudy=false;
$mp3=new MP3_Id($deepstudy);
$mp3->read($filename);
?>

Expected result:
----------------
Errormessage telling me the file dows not exist.

Actual result:
--------------
Errormessage (Notice) telling me the variable $file is not defined:

PHP Notice: Undefined variable: file in E:\Programme\php5\PEAR\MP3\Id.php on line 412

[2004-04-03 11:53 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