-- wadearnold <[EMAIL PROTECTED]> wrote (on Wednesday, 17 September 2008, 01:15 PM -0700): > We are in the process of upgrading our web servers from 5.1.2 to 5.2.6 and we > are getting odd string errors on all of the zend framework. Here is an > example if you just go to the Zend loader directly: > > Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or > T_FUNCTION or T_VAR or '}' in /home/wwwl/library/Zend/Loader.php on line 40 > > In trying to figure out what could have changed I have noticed that If I > change the constructor from > > public function __construct() > > to > > function _construct() > > it no longer produces the error for that file. I have no idea why this is or > where to go next. Is there something new in PHP.ini or elsewhere that is > causing this issue?
This sounds to me like your server is not using the PHP you think it is -- these errors smell of PHP 4 to me. Run a phpinfo() to verify. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/