ID: 11660 Updated by: derick Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: COM related Operating system: PHP Version: 4.0.6 Assigned To: Comments: Submitted twice Previous Comments: --------------------------------------------------------------------------- [2001-06-25 09:07:12] [EMAIL PROTECTED] Example: $user = "test_user"; $allowed = 8; $instance = new COM("dll.CObject") or die("Unable to instanciate dll.CObject"); $instance->CheckLogin($user, COM_REMOTE_SERVER, &$allowed); echo $allowed; $allowed has always the value that you have specified above, here: 8; When I change $allowed to 6788, then I get 6788. It seems that the variable won't be changed when you pass it by reference. It doesn't matter if i use the & sign or not! Note that the variable $allowed have to be integer, I can't pass a variant type to the COM-Function CheckLogin. The same has been working with previous versions of PHP, until 4.0.5 and above. In need this functionality because i use a lot of stuff like that: $instance->some_function(&$var1, &$var2, &$var3); any clue, what's going up? --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11660&edit=2 -- 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]