Hi everybody,
I use Zend_Pdf to dinamically create Pdf files in my application.
Today I've noticed that the link used to download Pdf files causes a
500 Internal Server error.
After a while, I discovered that the error was caused by the line 334 in
Zend/Pdf/Page.php
$this->_pageDictionary->LastModified = new
Zend_Pdf_Element_String(Zend_Pdf::pdfDate());
Now this line is commented and Pdf are working again.
However, the real problem was inside Zend_Pdf::pdfDate(), where php's date()
function is called.
Then I've done a test creating a new tests controller ( and related view )
<?php
class TestsController extends Zend_Controller_Action {
public function indexAction(){
$this->view->dt = date("l");
}
}
And calling www.mysite.com/tests/
What I've got is again 500 Internal Server error.
And if a change date() for example with gmdate() it works.
I've also done another test creating a file called date.php with the this
content
<?php echo date('\D\:YmdHisO'); ?>
and calling it directly ( www.mysite.com/date.php ) it works.
Does anybody noticed a similar behaviour or have an explaination for this?
Thank you
Sergio
_________________________________________________________________
Scopri tuttele novità di Internet Explorer 8
http://www.microsoft.com/italy/windows/internet-explorer/msn.aspx