php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2833 Variable handling is different
Submitted: 1999-11-26 11:47 UTC Modified: 2000-06-23 12:43 UTC
From: puck at 4ofborg dot net Assigned:
Status: Closed Package: Other
PHP Version: 3.0.12 OS: Linux 2.2.12
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: puck at 4ofborg dot net
New email:
PHP Version: OS:

 

 [1999-11-26 11:47 UTC] puck at 4ofborg dot net
Using PHP4 Beta 3 :
calling my website index.ihtml with the following code:
<? php
     if ($action == "")
     { do_something(); }
?>

PHP4 Beta 3 now complains "undefined variable action", but with PHP3 and PHP4 Beta 2
everything worked fine !!!
Now i have to do redirects to my file wih index.ihtml?action=  do get it to work ..

Thomas

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-23 12:43 UTC] hholzgra at cvs dot php dot net
ist not a bug, its a feature :)

either adjust the warning level in php.ini

or test with isset() instead of ==""
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 09:01:27 2024 UTC