RE: [PHP] Warnings w/ !$var!?
| From: | Johnson, Kirk | Date: | Fri, 20 Apr 2001 14:49:31 +0000 |
| Subject: | RE: [PHP] Warnings w/ !$var!? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-49570@lists.php.net to get a copy of this message | ||
> I just installed PHP4 on a Windows 2000 box (tried it
> both as CGI and
> ISAPI) and am getting a very annoying behavior from it, that I do not
> see on my installation in Linux.
> When I check a variable (say, in a if() statement) via
> !$var, I get a
> Warning message printed saying that it is not initialized (if that is
> the case)... well, that's part of the reason why I bloody
> doing the test!
Check the error reporting level
http://www.php.net/manual/en/function.error-reporting.php.
See the reader comment regarding E_NOTICE. It may be only that the error
reporting level is set differently than your previous machines.
Kirk