php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19238 Why must I define all variable
Submitted: 2002-09-04 19:46 UTC Modified: 2002-09-06 04:00 UTC
From: jfinander at hotmail dot com Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 4.2.1 OS: Windows/Apache
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: jfinander at hotmail dot com
New email:
PHP Version: OS:

 

 [2002-09-04 19:46 UTC] jfinander at hotmail dot com
In earlier versions of PHP there was no need to define a variable before calling it ie.

if(!uname){
     echo("Incorect");
}

Now all my old code doesn't work and I must replace it with

if(empty($uname)){
     echo("incorrect");
}

I have tried turning the regiser_globals on and off in the .ini file as well as the adding ~E_NOTICE to teh error line...

The only thing that works is using a previous .ini file.. but I need to know WHY?

thanks 
Jesse

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-04 23:32 UTC] kalowsky@php.net
and what are the differences between the php.ini files?
 [2002-09-06 04:00 UTC] hholzgra@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC