Issue Type: Bug Created: 2009-07-31T13:05:31.000+0000 Last Updated: 2009-11-15T09:51:29.000+0000 Status: Resolved Fix version(s): - 1.9.6 (24/Nov/09)
Reporter: Travis Pew (travisp) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Pdf
Related issues: Attachments:
If Zend_Pdf_Page is used on its own (e.g. to access Zend_Pdf_Page::SIZE_A4), a fatal error occurs:
<pre class="highlight"> This is solved, for me, by either: 1) Stripping all require_once's and relying on autoloader (good for performance, but this is not the way most people will use it in the beginning, or necessarily on their development servers) 2) Adding the following line at the top of Zend_Pdf_Page *before* other require statements:
/** Zend_Pdf_Font */ require_once 'Zend/Pdf/Font.php'; ```
Since I rely on autoloading, I'm not fully sure if my solution #2 would solve the issue in all cases, but I think trying to fix the underlying problem would be a good idea.
Posted by Ondrej Flidr (snipercze) on 2009-10-18T14:45:14.000+0000
Solution #2 works for me (ZF 1.9.4)
Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-10-18T15:48:44.000+0000
Do you have any code to reproduce this issue?
Posted by Travis Pew (travisp) on 2009-10-18T15:58:20.000+0000
Sure, just call:
at the top of any view script before you've accessed Zend\_Pdf Posted by Alexander Veremyev (alexander) on 2009-11-15T09:51:29.000+0000 Fixed.
Have you found an issue?
See the Overview section for more details.