Hi all. I'm trying to move someone else's app onto a different server (and debug it in the process). Among the onslaught of bugs to squash, theres one I just cant get my head around... I get a parse error on try-catch, and I have no idea why. I've isolated the problem code and tested it on a virtual server -- no problems. I'm sure its server/ini settings that don't fit. Any ideas?
Parse error: syntax error, unexpected '{' in ~/includes/generate_pdf.php on line 15
Line 15 is 'try {'
try {
$pdf = Zend_Pdf::load(dirname(__FILE__)."/bla.pdf");
}
catch (Zend_Pdf_Exception $e) {
throw $e;
}
I've commented out all code surrounding this section and I still get the same error. Am I being a noob here?