$_SERVER Variables in Console Application

I have a console application built in yii 1.1.13 with php 5.3 native, hosted in a provider.

Works perfectly.

I now need to use some extra php module, so I went to cpanel and changed php version from 5.3 native to php 5.3.

Now, my console app breaks with the following error on log:




PHP Notice:  Undefined index: SCRIPT_FILENAME in /............../framework/base/CApplication.php on line 142



Didn’t change anything else.

I’ve searched and searched but can’t find a proper solution.

When I change it back to 5.3 native all works fine again.

Can anybody please give me a hint?

Are you sure that in previous PHP version configuration "notice" are visible?

Don’t really know as my provider doesn’t show native settings. In any case this is not just an error showing problem. The code really breaks. Maybe I’m not fully understanding what you mean. I’m gonna dig a little more into into it. Thanks anyway.

You could see server log.

Problem is that in the second case your server does not populate the $_SERVER[‘SCRIPT_FILENAME’] variable try to see with your hosting provider if they can give you any explanation about it.