#22367 [Opn->Fbk]: undefined variable has a value
| From: | sniper@php.net | Date: | Sun, 23 Feb 2003 07:26:27 +0000 |
| Subject: | #22367 [Opn->Fbk]: undefined variable has a value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33969@lists.php.net to get a copy of this message | ||
ID: 22367
Updated by: sniper@php.net
Reported By: stanislav dot chachkov at epfl dot ch
-Status: Open
+Status: Feedback
Bug Type: Variables related
Operating System: Solaris8
PHP Version: 4.3.0
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
It might have been fixed. If not, then put that long
example somewhere to be downloaded and add the url here.
Previous Comments:
------------------------------------------------------------------------
[2003-02-21 17:31:45] stanislav dot chachkov at epfl dot ch
In a method we have that ($a is undefined,
but this also works if you substitute $a by any other name):
function getColumnValue($col_name){
var_dump($a); echo "a=$a <br>";
...
}
This method is called a number of times and the output is like this:
NULL a=
NULL a=
...
NULL a=Etape_Editor_IDEtape_Editor_ID''
Actually "EtapeEditor_ID" was the parameter of PREVIOUS call to one of
methods of this class.
I can not reproduce this problem with a short script, it seems that it
appears only when the number of classes, objects and calls is large,
otherwise it works fine.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22367&edit=1