I cannot figure out why I could be having these problems. I've searched; oh yes, I've searched; and only one other person on the entire Net seems to have had my problem -- and he never received an answer.
I include a file:
requre('config.inc.php');
which contains these constant definitions:
define('ARCH_NO_AUTH', 0);
define('ARCH_AUTH', 1);
define('ARCH_ALREADY_AUTH', 2);
define('ARCH_NO_USER', 3);
define('ARCH_BAD_PASS', 4);
define('ARCH_ANONYMOUS', 5);
I've quoted them properly and everything, as far as I can see. Then I use those constants in a class in another require()d file (I call it 'include/archivosCommonClasses.php'), like so:
$this->authenticatedState = ARCH_NO_AUTH;
All kosher, right? No!
I receive these following errors:
Notice: Use of undefined constant ARCH_NO_AUTH - assumed 'ARCH_NO_AUTH' in /var/www/localhost/htdocs/archivos/include/archivosCommonClasses.inc.php on line 949
As you can see, I'm not falling prey to the usual problem that causes those error messagse (i.e., forgetting to put array indexes in quotes). Another weird thing is that when I take those constant definitions and place them directly in my file (instead of 'config.inc.php') everything works beautifully, and I receive no 'Constant ARCH_NO_AUTH already defined' errors like I'd expect when I define constants in a file and an included file.
Constants from other included files (e.g., constants from ADOD work fine.
any ideas? I'm using PHP 4.3.6 on Linux, if that matters..