No replies?
Meanwhile I tried to change the external script to use a different program.
I tried with wkhtmltopdf, it works very well, but I have downloaded from the
author website a statically linked version, because its compilation requires
too many dependancies.
If I change my script to use it, my tests runs fine, but when I run it from
a web script I get empty output from the command and 133 as shell return
code.
It is all the day that I try to solve it, but I think this is an error
related to the fact that the program is statically linked, and it causes
some problems when run into apache.
If I run it in this way:
$cmd = '/usr/bin/wkhtmltopdf';
exec("/bin/sh " . $cmd . ' 1>&2', $output, $return);
require_once 'Zend/Debug.php';
Zend_Debug::dump($output);
Zend_Debug::dump($return);
I obtain error 126 which is:
126 Command invoked cannot execute Permission problem or command
is not an
executable
as stated here: http://tldp.org/LDP/abs/html/exitcodes.html
But the file is executable, infact Zend_Debug::dump(is_executable($cmd));
returns true.
I don't know how to solve this, but I need to find a solution, otherwise I
can not upgrade to ZF 1.9.0.
fab2008 wrote:
>
> I've just upgraded to ZF 1.9.0 and I have a problem running my unit tests.
> Currently my invoices
--
View this message in context:
http://www.nabble.com/Zend_Pdf-problem-in-ZF-1.9.0-tp24790534p24811927.html
Sent from the Zend Framework mailing list archive at Nabble.com.