From: patrick dot hagemeister at krankikom dot de Operating system: Linux SuSE 8.0 PHP version: 4.3.6 PHP Bug Type: Unknown/Other Function Bug description: Variables mix up
Description: ------------ I have a medium-sized php applications (~20000 lines), which starts to produce a few problems. Sometimes, variables mix up: i.e. i create a new instance $root of class "CBXTreeNode", but only 3 lines later, suddenly the class type (checked using get_class()) of $root is "CBXWorkflow", and the value is the one of another variable in the same function. But between these lines, i didn't even touch the variable... In some places, a similar problem shows up: I instanciate a class CBXTreeNode, but if i do get_class($variable), it returns "cbxtreenodd" instead of ctxtreenode. Unfortunately i could not reproduce it on every server, on my development server it works, on the production server, it doesn't :( Also, the exact same source works outside my application, on the same server. I updated PHP from 4.2.3 to 4.3.6, but no change. Reproduce code: --------------- $root = $treemgr->getRootNode(); echo "root is class ".get_class($root)."<br>"; $workflow =& $this->getWorkflow(); echo "workflow is class ".get_class($workflow)."<br>"; echo "root is class ".get_class($root)."<br>"; // **Output in my application** // root is class CBXTreeNode // workflow is class SPWorkflow // root is class SPWorkflow Expected result: ---------------- Output should be: root is class CBXTreeNode workflow is class SPWorkflow root is class CBXTreeNode -- Edit bug report at http://bugs.php.net/?id=28183&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28183&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28183&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28183&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28183&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28183&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28183&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28183&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28183&r=support Expected behavior: http://bugs.php.net/fix.php?id=28183&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28183&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28183&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28183&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28183&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28183&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28183&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28183&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28183&r=float