ID: 9090 User Update by: [EMAIL PROTECTED] Old-Status: Open Status: Duplicate Bug Type: Class/Object related Description: call_user_method() duplicates object This bug is a duplicate of #9054 and #6347. Andi attached a message to #6347 saying this would be fixed in 4.0.2, but I'm running 4.0.4pl1 and the bug is still there. Previous Comments: --------------------------------------------------------------------------- [2001-02-03 17:21:00] [EMAIL PROTECTED] First some sample code: class foo { var $bar = 0; function increase () { $this->bar++; } } $foo = new foo; print "Bar: " . $foo->bar . "n"; call_user_method('increase', $foo); print "Bar: " . $foo->bar . "n"; $foo->increase(); print "Bar: " . $foo->bar . "n"; This will output: Bar: 0 Bar: 0 Bar: 1 It appears that call_user_method is working on a copy of the object rather than the object itself. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=9090 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]