PHP 4.0 Bug #9679 Updated: undefined variable
| From: | emir_p at yahoo dot com | Date: | Sun, 11 Mar 2001 08:12:07 +0000 |
| Subject: | PHP 4.0 Bug #9679 Updated: undefined variable | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-48640@lists.php.net to get a copy of this message | ||
ID: 9679
User Update by: emir_p@yahoo.com
Old-Status: Open
Status: Closed
Bug Type: Variables related
Description: undefined variable
Previous Comments:
---------------------------------------------------------------------------
[2001-03-11 02:35:10] emir_p@yahoo.com
Warning: Undefined variable: currYear in c:inetpubwwwrootcalendarmonth.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
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=9679