Perhaps the error reporting level was different on the linux box, that's why you weren't seeing them.
In PHP variable declaration is not mandatory, but it can throw a NOTICE if error reporting is set at E_ALL in your php.ini
Personally I prefer to declare all my variables before use