#19238 [Opn->Fbk]: Why must I define all variable

From: Date: Thu, 05 Sep 2002 04:32:13 +0000
Subject: #19238 [Opn->Fbk]: Why must I define all variable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18472@lists.php.net to get a copy of this message
ID: 19238 Updated by: kalowsky@php.net Reported By: jfinander@hotmail.com -Status: Open +Status: Feedback Bug Type: *Configuration Issues Operating System: Windows/Apache PHP Version: 4.2.1 New Comment: and what are the differences between the php.ini files? Previous Comments: ------------------------------------------------------------------------ [2002-09-04 19:46:15] jfinander@hotmail.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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19238&edit=1

« previous php.bugs (#18472) next »