From: stanislav dot chachkov at epfl dot ch
Operating system: Solaris8
PHP version: 4.3.0
PHP Bug Type: Variables related
Bug description: undefined variable has a value
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 bug report at http://bugs.php.net/?id=22367&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22367&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22367&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22367&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22367&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22367&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22367&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22367&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22367&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22367&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22367&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22367&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22367&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22367&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22367&r=gnused