Bug #9679 Updated: undefined variable

From: Date: Wed, 17 Jul 2002 22:03:50 +0000
Subject: Bug #9679 Updated: undefined variable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14463@lists.php.net to get a copy of this message
ID: 9679 Updated by: cynic@php.net Reported By: emir_p@yahoo.com -Status: Closed +Status: Bogus Bug Type: Variables related Operating System: W2K PHP Version: 4.0.4pl1 New Comment: 1) way too old PHP version 2) user error, FAQ Previous Comments: ------------------------------------------------------------------------ [2002-07-17 17:57:11] Bas@Synthetical.com Solution????? ------------------------------------------------------------------------ [2001-03-11 02:35:10] emir_p@yahoo.com Warning: Undefined variable: currYear in c:\inetpub\wwwroot\calendar\month.view.php on line 29 this is the code that is causing this if(!$currYear) { $currYear = date("Y"); } I found some examples that have $variable++ but the variable is not predefined, and some other examples like if (!$submit) {} also give warnings "undefined variable"... On a couple of forums I've found the same problem, but no solution..is it a configuration problem or a bug???? People that wrote those examples did not seem to have those problems. thanks for help ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=9679&edit=1

« previous php.bugs (#14463) next »