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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 08:01:30 2025 UTC