YiiBase parse error

Hi, all. I typed yiic comand in my Mac computer with MAMP. But, I had the following message:

Parse error: parse error, expecting T_OLD_FUNCTION' orT_FUNCTION’ or T_VAR' or‘}’’ in /Applications/MAMP/htdocs/yii/framework/YiiBase.php on line 59

Any idea?

Thanks in advance

Your command line version of PHP is probably PHP 4. Check with php -v.

Hi, Mike. You are right. PHP is PHP 4. I have to update it.