Home » XML » XML_image2svg » Bug #6707
Failed opening required 'HTML/IT.php
Details
| Submitted | 2006-02-06 16:03 UTC |
|---|---|
| From | maly at invia dot cz |
| Status | Duplicate |
| Package | XML_image2svg |
| PHP Version | 4.3.11 |
| OS | WXP |
| Roadmaps | (Not assigned) |
Comments
[2006-02-06 16:03 UTC] maly at invia dot cz
Description:
------------
seems that required file resides by default rather here: "HTML/Template/IT.php", both on my workstation an the server where i tried to test it.
[2006-02-06 16:47 UTC] maly at invia dot cz
also the class itself (and the constructor) seems to be renamed to HTML_Template_IT. Next problem is that testing variable for beeing resource after the file-desriptor is closed, causes an error.
the suggested patch follows:
--- C:\_web\PEAR\XML\image2svg.php.orig Mon Feb 06 17:16:18 2006
+++ C:\_web\PEAR\XML\image2svg.php.mine Mon Feb 06 17:37:07 2006
@@ -55,7 +55,7 @@
* @author Urs Gehrig <urs@circle.ch>
*/
require_once( "PEAR.php") ;
-require_once( "HTML/IT.php") ;
+require_once( "HTML/Template/IT.php") ;
class XML_image2svg extends PEAR {
@@ -97,7 +97,7 @@
{
$this->PEAR();
$this->fileName = $fileName;
- $this->tpl = new IntegratedTemplate("." );
+ $this->tpl = new HTML_Template_IT("." );
$this->tplFile = "";
$this->_getImage();
@@ -121,9 +121,11 @@
}
$this->fp = $fp;
- fclose ($fp);
+
return $this->_getImageParamteres();
+
+ fclose ($fp);
}
return $this->errorHandler("FILE_NOT_FOUND", __FILE__, __LINE__ );
}
[2006-07-06 19:02 UTC] urs at php dot net
Thank you for taking the time to report a problem with the package.
This problem may have been already fixed by a previous change that
is in the CVS of the package. Please log into CVS with:
cvs -d :pserver:cvsread@cvs.php.net:/repository login
and check out the CVS repository of this package and upgrade
cvs -d :pserver:cvsread@cvs.php.net:/repository co pear/XML_image2svg
pear upgrade pear/XML_image2svg/package2.xml
or
pear upgrade pear/XML_image2svg/package.xml
If you are able to reproduce the bug with the latest CVS,
please change the status back to "Open".
Again, thank you for your continued support of PEAR.
It seems that this issue already has been fixed with bug #657.