We have been recently switching over from apache to IIS and we are having problems with undeclared variables.
//$variable not declared yet;
if($variable != 1) 'echo something';
issues a notice but also doesn't run whats in the if statement. In the previous environment this would still run. I'm blaming this on IIS because i beleive the php versions are close if not the same.
I realize this is not exactly best practice but it would not be worth the effort to change all of our old code. Is there something in the php ini file i can change that would make it handle undeclared variables differently?