#34440 [Opn->Asn]: COM Error confuse with [] ()
| From: | sniper@php.net | Date: | Mon, 12 Sep 2005 21:25:29 +0000 |
| Subject: | #34440 [Opn->Asn]: COM Error confuse with [] () | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84954@lists.php.net to get a copy of this message | ||
ID: 34440
Updated by: sniper@php.net
Reported By: anecdote at yahoo dot com
-Status: Open
+Status: Assigned
Bug Type: COM related
-Operating System: Windows XP PRO SP2/2003 Server
+Operating System: win32
-PHP Version: 5.0.5
+PHP Version: 5CVS-2005-09-11
-Assigned To:
+Assigned To: wez
New Comment:
Assigned to the maintainer of COM, Wez, have fun. :)
Previous Comments:
------------------------------------------------------------------------
[2005-09-12 22:32:11] anecdote at yahoo dot com
Still Error !
Did you fix before copied and pasted an auto-message sniper@php.net ?
If you did and tested...please tell me like
Fixed...download the lastest cvs at
http://snaps.php.net/win32/php5-win32-latest.zip
If you did not....please...waste time and not make php better. I can
wait....5.1.0 5.2.0 5.3.0 whatever
I saw you did the same thing in many bug report...the user who reported
the bug came back and said -> still error.
Hope PHP Better...Love PHP
------------------------------------------------------------------------
[2005-09-12 00:33:54] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-09-09 17:11:54] anecdote at yahoo dot com
Description:
------------
Hello I experienced some bug but not sure may be the new way of
PHP....
I use php 5.0.2 with my company project with COM (My company COM) and
just upgraded to 5.0.5
[Sample Code]
<?php
$cat=new COM("XModule.Categories");
$protype=$cat->IndexOf("Sim");
$list=$protype->Items[0];//Error this line
echo $list;
?>
[Result]
Fatal error: Uncaught exception 'com_exception' with message 'Error
[0x8002000e] Invalid number of parameters. ' in
C:\PHP\Customer\test.php:4 Stack trace: #0
C:\PHP\Customer\test.php(4): unknown() #1 {main} thrown in
C:\PHP\Customer\test.php(4): on line 4
[Expected Result]
Nokia 6680
++++++++++++++++++++++++
I test with many old projects with 5.0.2/5.0.3/5.0.4 no problem.
I tried to test
ADODB.Connection
ADODB.Recordset
etc..
***Access 2002-2003/MDAC 2.8***
with 5.0.5/Lastest CVS got same error.
[Sample Code]
<?php
$con = new COM("ADODB.Connection");
$rs = new COM("ADODB.Recordset");
$con->Open("PROVIDER=Microsoft.Jet.OLEDB.4.0; DATA
SOURCE=C:\\test.mdb");
$query = "SELECT * FROM Company";
$rs->Open($query, $con, 1, 3);
echo $rs->Fields->Item[0];//Error this line
?>
[Expected Result]
Simple Mobile
Any suggestion ?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34440&edit=1