#19238 [NEW]: Why must I define all variable

From: Date: Thu, 05 Sep 2002 00:46:15 +0000
Subject: #19238 [NEW]: Why must I define all variable
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18462@lists.php.net to get a copy of this message
From:             jfinander@hotmail.com
Operating system: Windows/Apache
PHP version:      4.2.1
PHP Bug Type:     *Configuration Issues
Bug description:  Why must I define all variable

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
-- 
Edit bug report at http://bugs.php.net/?id=19238&edit=1
-- 
Try a CVS snapshot:  http://bugs.php.net/fix.php?id=19238&r=trysnapshot
Fixed in CVS:        http://bugs.php.net/fix.php?id=19238&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=19238&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=19238&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=19238&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19238&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=19238&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=19238&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=19238&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=19238&r=globals



Thread (3 messages)

« previous php.bugs (#18462) next »