ID:               28183
 Updated by:       [EMAIL PROTECTED]
 Reported By:      patrick dot hagemeister at krankikom dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         Scripting Engine problem
 Operating System: Linux SuSE 8.0
 PHP Version:      4.3.6
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.


Previous Comments:
------------------------------------------------------------------------

[2004-04-27 16:26:38] patrick dot hagemeister at krankikom dot de

Changed category to "Scripting engine problem"

------------------------------------------------------------------------

[2004-04-27 16:21:04] patrick dot hagemeister at krankikom dot de

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 this bug report at http://bugs.php.net/?id=28183&edit=1

Reply via email to