Bug #10521: Referencing a variable without setting its contents
| From: | timl at tech-binary dot com dot au | Date: | Fri, 27 Apr 2001 06:03:00 +0000 |
| Subject: | Bug #10521: Referencing a variable without setting its contents | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52559@lists.php.net to get a copy of this message | ||
From: timl@tech-binary.com.au
Operating system: Win2K Server
PHP version: 4.0.4pl1
PHP Bug Type: IIS related
Bug description: Referencing a variable without setting its contents
The following script works in Apache but not in IIS
<?
if ($test=="testval") { print("Success"); }
?>
Apache treats the variable $test as a null variable but IIS throws a error:
Warning: undefined variable test in [script] in line 2
Depending on what follows, it will usually output something like what you were testing for/wanted
except that it has the error in front of it.
This is with the standard PHP windows installer. CGI version.
--
Edit Bug report at: http://bugs.php.net/?id=10521&edit=1