Yii first run - Error

Hello all,

just tried to setup my first yii app by lauching yiic (or php yiic.php) and got the following error :

Parse error: parse error, expecting T_OLD_FUNCTION' orT_FUNCTION' or T_VAR' or'}'' in /Users/user/Sites/Libraries/Yii/framework/YiiBase.php on line 49

I'm running MAMP on mac os x, Php 5.2.5

any one has any idea what could be the problem

thank you in advance

Make sure yiic is calling the right PHP. It might be different from the one used for Web.

thanks a lot

I had not thought of this …

the php executable used was 4.4

evrything works fine with 5.2.5 as php executable