From:             artpego at hotmail dot com
Operating system: Windows XP SP1
PHP version:      4.3.2
PHP Bug Type:     COM related
Bug description:  No abilty to assign value to object array

Description:
------------
This is caused while using the "RFC_READ_TABLE" remote function call for
SAP R/3. The ability to add a value to a temporary table at a specified
row and column is required.






Reproduce code:
---------------
$funSap=new COM("SAP.Functions") or die ("Did Not Create");
$myFun=$funSap->Add("RFC_READ_TABLE");
$optionAdd=$myFun->Tables("OPTIONS");
$optionAdd->AppendRow();
$optionAdd(1,"TEXT")="FCURR = 'NTD'";

Expected result:
----------------
The script above supposed to do the following:

a) $optionAdd=$myFun->Tables("OPTIONS")
## CREATE A TABLE NAMED OPTIONS.

b) $optionAdd->AppendRow()
## METHOD CALLED TO ADD A BLANK ROW TO THE OPTIONS TABLE

c) $optionAdd(1,"TEXT")="FCURR = 'NTD'"
## ASSIGN THE VALUE "FCURR = 'NTD'" TO THE OPTIONS TABLE (ROW 1,
COLUMN1)==(1,"TEXT")

Actual result:
--------------
## ERROR -> parse error, unexpected '=' in line ...
This is due to the line $optionAdd(1,"TEXT")="FCURR = 'NTD'"

I have tried countless combinations, read every piece of documentation,
searched the internet for over a week and can see exambles in every other
language doing exactly this with COM objects (VB,Java,PERL,Etc).

Every other part of the script works
a) I can connect to SAP
b) I can query functions and tables and get results

However: If I am unable to use the portion of the script listed above,
there is no way to limit my queries through a "WHERE CLAUSE" or even
select specific fields... This means my query results would return every
row from the entire table (some have millions of entries) and there is a
buffer width of 512 Bytes that can not be exceeded for each row. Your
assistance will be greatly appreciated.

Michael

-- 
Edit bug report at http://bugs.php.net/?id=24465&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24465&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24465&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24465&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24465&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24465&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24465&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24465&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24465&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24465&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24465&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24465&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24465&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24465&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24465&r=gnused

Reply via email to