PHP 4.0 Bug #3730: Warning: Undefined Variable
| From: | mikes at shafe dot com | Date: | Sun, 05 Mar 2000 05:45:52 +0000 |
| Subject: | PHP 4.0 Bug #3730: Warning: Undefined Variable | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16404@lists.php.net to get a copy of this message | ||
From: mikes@shafe.com
Operating system: Red Hat Linux
PHP version: 4.0 Beta 3
PHP Bug Type: Scripting Engine problem
Bug description: Warning: Undefined Variable
Script:
<? if ($coursecode) {
// do stuff if this variable is passed through
// the file ....
}
else {
// if it doesn't exist do this ...
}
?>
When I run this, it works fine -- until after a few hours of uptime. One day it just started to
start saying "Undefined variable coursecode in header.html". When I rebooted the server
everything worked fine.
The server has been up for 30 days, so I figured maybe the uptime had something to do with it
(although everything else is working fine). I might just install PHP 3.0.15 to compensate.