Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.5.0, 1.6.0, 1.6.1, 1.6.2
-
Fix Version/s: 1.8.0
-
Component/s: Zend_Loader
-
Labels:None
-
Fix Version Priority:Should Have
Description
I have an application which relies heavily on generating PDF reports. I have chosen domPDF for the task (which is excellent BTW). Since upgrading to 1.5.0 the changes to Zend_Loader now seem to prevent use.
Example code to replicate issue:
require_once 'DomPDF/dompdf_config.inc.php';
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();
spl_autoload_register('DOMPDF_autoload');
$pdf = new DOMPDF();
With 1.0.4 this works without any issues. The domPDF gets loads and the class is usable from within my application. Since upgrading to 1.5.0 I now get the following errors:
Warning: Zend_Loader::include_once(DOMPDF.php) [function.Zend-Loader-include-once]: failed to open stream: No such file or directory in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ZendFramework\library\Zend\Loader.php on line 83 Warning: Zend_Loader::include_once() [function.include]: Failed opening 'DOMPDF.php' for inclusion (include_path='widgets/Macro4/Accounting/RunReport\;.;C:\php5\pear;..\ZendFramework\library;.\library;.\application\models;.\application\config;.\widgets') in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ZendFramework\library\Zend\Loader.php on line 83 Warning: Zend_Loader::include_once(Frame\Tree.php) [function.Zend-Loader-include-once]: failed to open stream: No such file or directory in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ZendFramework\library\Zend\Loader.php on line 83 Warning: Zend_Loader::include_once() [function.include]: Failed opening 'Frame\Tree.php' for inclusion (include_path='widgets/Macro4/Accounting/RunReport\;.;C:\php5\pear;..\ZendFramework\library;.\library;.\application\models;.\application\config;.\widgets') in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ZendFramework\library\Zend\Loader.php on line 83 Warning: Zend_Loader::include_once(Stylesheet.php) [function.Zend-Loader-include-once]: failed to open stream: No such file or directory in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ZendFramework\library\Zend\Loader.php on line 83 Warning: Zend_Loader::include_once() [function.include]: Failed opening 'Stylesheet.php' for inclusion (include_path='widgets/Macro4/Accounting/RunReport\;.;C:\php5\pear;..\ZendFramework\library;.\library;.\application\models;.\application\config;.\widgets') in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ZendFramework\library\Zend\Loader.php on line 83
I use domPDF because I need to convert HTML to PDF. I accept the Zend_Loader has changed but is there a way to switch off the new behavior to allow the use of external libs that do not necessarily conform to the strict guidelines in ZF?
Cheers,
- Robert
Attachments
Issue Links
| This issue duplicates: | ||||
| ZF-2923 | Zend_Loader::autoload() causes a file not found warning when unable to include the class |
|
|
|
Please evaluate and assign as necessary.