Re: Is there a setting or program for doing strict checking in PHP compilation?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Is there a setting or program for doing strict checking in PHP compilation?

From: cyberhorse <cyberhorse@gmail.com>
Date: Wed Jul 20 2005 - 12:13:48 CEST

At the beginning of your code, do this:

error_reporting(E_ALL);

when you check if a variable is false, rather than empty, to this:

if (flag === false)

if you want to check if something is storing an integer, you can do
type checking with:
is_integer(i) or is_int(i)

for the $ - your editor should help you identify these. I would
recommend PHP Eclipse.
Received on Mon Oct 17 21:12:09 2005