php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10521 Referencing a variable without setting its contents
Submitted: 2001-04-27 02:03 UTC Modified: 2001-04-30 05:35 UTC
From: timl at tech-binary dot com dot au Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.0.4pl1 OS: Win2K Server
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: timl at tech-binary dot com dot au
New email:
PHP Version: OS:

 

 [2001-04-27 02:03 UTC] timl at tech-binary dot com dot au
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-30 03:17 UTC] cynic@php.net
I bet the Apache box has error_reporting E_ALL &~ E_NOTICE while the IIS box has error_reporting E_ALL.

RTFM, please.

(if this ain't the case, reopen the report)
 [2001-04-30 05:04 UTC] timl at tech-binary dot com dot au
>> I bet the Apache box has error_reporting E_ALL &~ E_NOTICE while the IIS box has
error_reporting E_ALL.

How can I check this or set it the same as Apache?  Both versions of Apache and IIS are the default installations, so nothing to my knowledge has been modified in this area.
 [2001-04-30 05:35 UTC] cynic@php.net
Well, you probably used php.ini-dist for Apache, and php.ini-optimized for IIS. Either way, send further questions to php-general@lists.php.net or php-windows@lists.php.net.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 19:01:27 2024 UTC