Edit report at http://bugs.php.net/bug.php?id=37274&edit=1

 ID:               37274
 Comment by:       juliec at computersecurity dot com
 Reported by:      tp at synolon dot gr
 Summary:          Array style COM property access
 Status:           No Feedback
 Type:             Bug
 Package:          COM related
 Operating System: Windows XP Pro
 PHP Version:      5.1.3

 New Comment:

I can confirm this is an issue with the latest 5.3.2 build also. 



The error is Fatal error: Uncaught exception 'com_exception' with
message 'Error [0x8002000f] Parameter not optional. ' 



Someone created a very simple standalone test library specifically to
reproduce this problem. I have the dll that I can email to you along
with a test php script so you can see the error in action on your own
system. I also have the Visual Basic library that does the same thing
except in VB I can set the property that we are not being allowed to set
in PHP without getting the error.



Please let me know where to email the libraries to or if you need any
other information to move forward with this.  Thank you.


Previous Comments:
------------------------------------------------------------------------
[2007-12-11 14:34:26] mjscod at web dot de

I can confirm this behaviour. PHP 5.2.4 contains this bug too.

------------------------------------------------------------------------
[2007-02-10 00:08:29] lee at dark-circuit dot com

On current snap of PHP 5.2.2 It still doesn't work, but I get a slightly
diff trace than some are reporting. Here's mine:



PHP Fatal error:  Uncaught exception 'com_exception' with message

'Error [0x8002000f] Parameter not optional.

' in C:\New Folder\prime-sync-itemdb.php:197

Stack trace:

#0 C:\New Folder\prime-sync-itemdb.php(197): unknown()

#1 {main}

  thrown in C:\New Folder (3)\prime-sync-itemdb.php on line 197



That is on this test line:

$oInfo->CustomField[1] = "bb";



Com property is 

string CustomField(ByVal Index As Integer)



VB.NET Code that works:

oCompanyInfo.CustomField(1) = "bb"



Note: in php: echo $oInfo->CustomField[1]; works fine. I just can't
assign anything with an array

------------------------------------------------------------------------
[2007-01-05 17:08:03] phpbugs at mike-c dot com

Still the same error using latest CVS snapshot

(PHP 5.2.1RC3-dev (cli) (built: Jan  5 2007 16:24:22))



PHP Fatal error:  Uncaught exception 'com_exception' with message 'Error
[0x8002000e] Invalid number of parameters.' in C:\PHP
Files\comobjecttest.php:4

Stack trace:

#0 C:\PHP Files\comobjecttest.php(4): unknown()

#1 {main}

  thrown in C:\PHP Files\comobjecttest.php on line 4

------------------------------------------------------------------------
[2007-01-01 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------
[2006-12-24 12:37:12] rricha...@php.net

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



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


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/bug.php?id=37274


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=37274&edit=1

Reply via email to