|
Posted by Chris Hope on 11/14/85 11:21
mydejamail@yahoo.co.uk wrote:
> Coming from an objectpascal background with strict type checking, I am
> being driven nuts by PHP.
>
> Stuff like using variables without declaring them, case sensitivity of
> variables, getting true, false, 0, 1, "" mixed up, missing the $
> before variables etc is really slowing me down.
>
> Is there a way to configure a run-time setting or interpreter setting
> that will throw up warnings or declare an error if some of these
> issues are present?
>
> I really need an external lint type program or a run-time setting that
> will highlight these issues in PHP.
Use === for a strict type checked comparison, and error_reporting(15) to
get the other stuff (or change the setting in your local php.ini or
httpd.conf files).
--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
[Back to original message]
|