Re: Undefined variables

From: Date: Sun, 31 Mar 2002 01:43:21 +0000
Subject: Re: Undefined variables
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-90843@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Not really. You either have to init your variables or turn off notices > in error_reporting() (or otherwise suppress them; i.e. display_errors = > off). initialising them with safe defaults is the thing to do - the point of the error is to warn about uninitialised variables (which, if register_globals is on, could be used by an attacker to make your scripts to bad things...) - -- Shane -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8pmm85DXg6dCMBrQRAl0PAJ9W6iBFtaYtXBKnvmtfKPPVJzHWyACfRg91 6IXouixJwNAsLJDhvYyhnSs= =DBej -----END PGP SIGNATURE-----

« previous php.general (#90843) next »