From: yunlan at mail dot eestart dot com Operating system: Microsoft window server 2003 PHP version: 4.3.4RC2 PHP Bug Type: COM related Bug description: I can convert the following code from asp to php
Description: ------------ ASP code: <% Set RS = Server.CreateObject("visualphd.data") RS.HOSTNAME="APP22" RS.TAGS.ADD "TIC1101.PV" RS.SAMPLEFREQUENCY = 60 RS.SAMPLEMETHOD="SNAPSHOT" RS.STARTTIME="NOW" RS.ENDTIME="NOW" RS.FETCH response.write(rs.tags("TIC1101.PV").VALUE) response.write("<br>") response.write(rs.tags("TIC1101.PV").timestamp) response.write("<br>") response.write(rs.tags("TIC1101.PV").CONFIDENCE) %> Reproduce code: --------------- I had Converted to php code: <? $obj = new COM("VisualPHD.Data"); $obj->HOSTNAME="APP22"; $obj->TAGS->ADD("TIC1101.PV"); $obj->SAMPLEFREQUENCY = 60; $obj->SAMPLEMETHOD="SNAPSHOT"; $obj->STARTTIME="NOW"; $obj->ENDTIME="NOW"; $obj->MoveFirst; $obj->FETCH; print_r($obj->TAGS["TIC1101.PV"]->VALUE); print_r("<br>"); print_r($obj->TAGS["TIC1101.PV"]->timestamp); print_r("<br>"); print_r($obj->TAGS["TIC1101.PV"]->CONFIDENCE); $obj=null; ?> I don't know it is right that from "RS.TAGS.ADD \"TIC1101.PV\"" to "$obj->TAGS->ADD("TIC1101.PV");"? Expected result: ---------------- Expected result is so such: 10.0 2003-10-27 17:40:50 100% Actual result: -------------- Actual result: 0 0 0 I hope you to help me. [EMAIL PROTECTED] -- Edit bug report at http://bugs.php.net/?id=25999&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25999&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25999&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25999&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25999&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25999&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25999&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25999&r=support Expected behavior: http://bugs.php.net/fix.php?id=25999&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25999&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25999&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25999&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25999&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25999&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25999&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25999&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25999&r=float