register_globals and E_ALL error reporting

From: Date: Wed, 13 Mar 2002 14:25:06 +0000
Subject: register_globals and E_ALL error reporting
Groups: php.general 
Request: Send a blank email to php-general+get-88349@lists.php.net to get a copy of this message
The following code generates a warning when register_globals=off and error reporting is set to E_ALL. How do I define the constant in another way not to generate a warning? This is with php 4.1.1. I use defines extensively throughout my code and it is making my debugging difficult through the transition to register_global=off code. <?php define(DBF_HOST, "localhost"); echo DBF_HOST; ?> Warning: Use of undefined constant DBF_HOST - assumed 'DBF_HOST' in var/www/html/iptrackdev/test.php on line 3 localhost

« previous php.general (#88349) next »