From: anecdote at yahoo dot com
Operating system: Windows XP PRO SP2/2003 Server
PHP version: 5.0.5
PHP Bug Type: COM related
Bug description: Error With 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 bug report at http://bugs.php.net/?id=34440&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34440&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=34440&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=34440&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34440&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34440&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34440&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34440&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34440&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34440&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34440&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=34440&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=34440&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34440&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34440&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34440&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34440&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34440&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34440&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34440&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34440&r=mysqlcfg