ID: 34440
Comment by: june2004 at yahoo dot com
Reported By: anecdote at yahoo dot com
Status: Assigned
Bug Type: COM related
Operating System: win32
PHP Version: 5CVS-2005-09-11
Assigned To: wez
New Comment:
1 year ago, nothing changed - -'
PHP Team...please tell me for the other ways to avoid this problem.
No seriously talking about this bug on internet.
Now I use 5.2.0 everything are OK but this problem.
-----------------------------------------
Thank you PHP Team for making PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-04-18 13:53:45] srabol at mail dot tele dot dk
The erorr is still in version 5.1.2
If you have the fix, why not implement it?
Do you really want all to move to .NET ?
------------------------------------------------------------------------
[2005-11-25 14:29:37] [EMAIL PROTECTED]
Send a patch to fix it if you're so interested.
------------------------------------------------------------------------
[2005-11-25 14:02:58] yummie007 at yahoo dot com
Why php team don't fix this bug in 5.1.0
This bug cause php can not work with many COM
Now my company moved all projects to ASP/ASP.NET
Abominable Bug of PHP
Fixed a bug to make a new bug ?
------------------------------------------------------------------------
[2005-09-12 23:25:28] [EMAIL PROTECTED]
Assigned to the maintainer of COM, Wez, have fun. :)
------------------------------------------------------------------------
[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