weird isset problem

From: Date: Thu, 29 Mar 2001 21:55:57 +0000
Subject: weird isset problem
Groups: php.general 
Request: Send a blank email to php-general+get-46166@lists.php.net to get a copy of this message
Hi! I have this weird thing happening here and I just can't see the problem. Can someone look at this and tell me if you see what is wrong? Below is a code snippet I am using and the output from the code. As can be seen in the output all the $config[*] stuff are set. The if statement still gets executed though as if one or more $config[*] isn't set. Inside of the if statement I checked again and sure enough, they are still set even though the program makes it into the if statement. I am so confused. Thanks in advance! Matthew Hanna hanna@clemson.edu ---- Code ---- print isset($config["harvester_list"]) ."\n1\n"; print isset($config["download_list"]) . "\n2\n"; print isset($config["linkchecker_list"]) . "\n3\n"; print isset($config["offline_list"]) . "\n4\n"; print isset($config["spider_list"]) . "\n5\n"; if (!isset($config["havester_list"]) || !isset($config["download_list"]) || !isset($config["linkchecker_list"]) || !isset($config["offline_list"]) || !isset($config["spider_list"])) { print "-----------------------------\n"; print isset($config["harvester_list"]) ."\n1\n"; print isset($config["download_list"]) . "\n2\n"; print isset($config["linkchecker_list"]) . "\n3\n"; print isset($config["offline_list"]) . "\n4\n"; print isset($config["spider_list"]) . "\n5\n"; die("Agent Automated System Lists Not Found!\n"); } ---- Output ----- 1 1 1 2 1 3 1 4 1 5 ----------------------------- 1 1 1 2 1 3 1 4 1 5 Agent Automated System Lists Not Found!

« previous php.general (#46166) next »