php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3730 Warning: Undefined Variable
Submitted: 2000-03-05 00:45 UTC Modified: 2000-07-23 19:24 UTC
From: mikes at shafe dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 3 OS: Red Hat Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mikes at shafe dot com
New email:
PHP Version: OS:

 

 [2000-03-05 00:45 UTC] mikes at shafe dot com
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-19 12:56 UTC] sterling at cvs dot php dot net
Same system, similair code works fine.  This ain't a PHP problem.
 [2000-05-19 13:16 UTC] zeev at cvs dot php dot net
[reopened]
The fact that it cannot be reproduced on a given system doesn't mean it doesn't exist.

mikes@shafe.com:
Can you please let us know whether the bug still exists in more recent versions of PHP 4.0?  The uptime shouldn't have anything to do with it, most probably.
 [2000-07-23 14:16 UTC] stas at cvs dot php dot net
No user feedback.
 [2000-07-23 19:24 UTC] mikes at shafe dot com
This problem is fixed in the latest stable PHP 4.0 releases, so all is well. :)
 [2000-07-23 19:24 UTC] mikes at shafe dot com
This problem is fixed in the latest stable PHP 4.0 releases, so all is well. :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 28 16:01:27 2024 UTC