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 » File Formats » File_IMC » Bug #2228

File_IMC::build() file_exists call fails

Details

Submitted2004-08-26 22:36 UTC
Fromscragz at hotmail dot com
Assignedpmjones
StatusNo Feedback
PackageFile_IMC
PHP Version4.3.4
OSDebian Sarge
Roadmaps(Not assigned)

Comments

[2004-08-26 22:36 UTC] scragz at hotmail dot com

Description:
------------
Since file_exists doesn't use the include_path and it is being passed a relative path, it fails to find the file.

Reproduce code:
---------------
You could try something like this:

$tmpPathInfo = pathinfo(__FILE__);

$filename = realpath($tmpPathInfo['dirname'].'/IMC/Build/'. $format . '.php');