RE: [PHP] Help: Constants

From: Date: Sat, 29 Jun 2002 01:32:44 +0000
Subject: RE: [PHP] Help: Constants
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104450@lists.php.net to get a copy of this message
> Maybe it's already discussed here, but PHP is generating errors of > undefined > constants. These constants are defined in my scripts. Als the superglobal > $_ENV is empty. Use quotes when using associative arrays. $_ENV['something'] rather than $_ENV[something] The warnings have always been there, PHP 4.2 just defaults to a higher error reporting level, so now you notice them. The problem comes from PHP looking for a constant called "something" and when it's not found, it issues a warning. Then it assumes you meant to use a string and tries it that way. You can adjust the error reporting in PHP.ini or with the error_reporting() function. ---John Holmes...

« previous php.general (#104450) next »