ID: 37274 Updated by: [EMAIL PROTECTED] Reported By: tp at synolon dot gr -Status: Open +Status: Feedback Bug Type: COM related Operating System: Windows XP Pro PHP Version: 5.1.3 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2006-12-14 20:47:59] lee at dark-circuit dot com Bug still exists in 5.2.0 :( I have confirmed the bug is in both 5.1.3 and 5.2.0 ------------------------------------------------------------------------ [2006-08-18 08:44:11] tp at synolon dot gr I'm happy to see that at least there are others interested in COM communication through PHP. I think that more work has to be done for this module cause brings a bridge for the open source community to the windoze world (it is usefull for some bussiness apps...). For example I could manage to run the code I presented through java using IBM COM bridge and worked OK. But is a pity to run a jsp site just because the COM PHP implemntation is buggy. Also I find it TOO much (in this case...) to call java code through PHP to get this job done... not to mention that my service provider won't support the php to java bridge. We love PHP so please give a look at that bug! ------------------------------------------------------------------------ [2006-08-17 18:30:02] phpbugs at mike-c dot com I recently started playing around with COM objects in PHP, and this bug has been causing me a huge headache. I've read several reports, including one which was marked fixed, so I did some research... The following syntax works on PHP 5.0.4: $Obj->Attribute['Name'] = $Val; However on PHP 5.0.5, it throws an exception: Fatal error: Uncaught exception 'com_exception' with message 'Error [0x8002000e] Invalid number of parameters. This therefore appears to be a regression dating back to apr/may 05. ------------------------------------------------------------------------ [2006-05-26 06:40:05] tp at synolon dot gr For the '$': Sorry, I misstyped it, but only here. In my original code this is OK. Unfortunately this is not the problem. I wonder if the problem is that the array style property returns an object and not a simple data type. When bug 28161 was fixed I saw that it was related with array style properties that could be assigned a value directly (eg a string, a number etc). But what about object COM properties? ------------------------------------------------------------------------ [2006-05-25 14:46:46] dtyschenko at soft-ukraine dot com $this->kbmDetail->Field[ fieldname ]->Value = $fieldvalue; Is it okay, that you type filedname without '$' ??? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/37274 -- Edit this bug report at http://bugs.php.net/?id=37274&edit=1