Hi, I've been trying to convert my latest code (heavily object orientated with a lot of referencing) to get it ready for Zend 2 but there are problems! Both these problems come from the Smarty template code so if these are changes instead of bugs I will post this message on the Smarty board.
1) the first one is this, using Zend 1 it is possible form within an object method to do this $x = new $this->someClassName; but with Zend 2 I have to change it to this $scn = $this->someClassName; $x = new $scn; 2) the second one is similar and very well may be related except it is with arrays and classes and function calls, using Zend 1 and can do this $x->functions[0](1, 2); but with Zend 2 it has to be $myFunc = $x->functions[0]; $myFunc(1, 2); The last one is a bit strange anyway because this only seems to work in Zend 1 with numerically indexed arrays but it's used in smarty compiled templates to call plugins so someone's got to fix something. Are these bugs, or is the parser getting stricter? Also any ideas when Zend 2 might be ready for release? Cheers Tom -- *************************************************** Tom Oram SCL Computer Services URL http://www.scl.co.uk/ *************************************************** -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php