php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25493 Notice: Undefined variable with register_globals = on
Submitted: 2003-09-11 10:00 UTC Modified: 2003-09-11 14:19 UTC
From: jfreier at manleygroup dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.3.3 OS: Window 2000
Private report: No CVE-ID: None
 [2003-09-11 10:00 UTC] jfreier at manleygroup dot com
Description:
------------
Please Help,
Im run IIS, and Apache on the same server.  I have changed the register_globalveriable = On, restrated my comp and sure enough it worked for apachie, BUT, when i run the same script under IIS 5.0 i get the same error.

Notice: Undefined variable:

~I thnk that the new version of PHP, php.ini is not setting right with windows IIS

Reproduce code:
---------------
index.php
<html>
<head><title>TestForm</title></head>
<body>
<form action=index2.php method=post>
<input type=text name=a>
<input type=submit value=testit>
<input type="hidden" name="action" value="form_submitted">
</form>
</body>
</html>

index2.php
<html>
<head></head>
<body>
<?php
   print $a;
?>
</body>
</html>


Expected result:
----------------
What ever you type in

Actual result:
--------------
Notice: Undefined variable: c:\ line 5

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-11 11:17 UTC] magnus@php.net
Are you editing the correct php.ini-file ?
Check the output form phpinfo() to see what file you should
edit. If you edited the wrong file, please mark this bug as
"Bogus".
 [2003-09-11 11:55 UTC] jfreier at manleygroup dot com
Well, i got it working after i reinstalled PHP, but there error i was having i thought should have been reported i hope it help alittle.
 [2003-09-11 14:19 UTC] sniper@php.net
User error -> bogus.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 07 13:02:56 2024 UTC