ID: 15543
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Feedback
Bug Type: COM related
Operating System: Windows NT 4.0/W2k
PHP Version: 4.1.0
New Comment:
could you add 'var_dump($bool)' above the if's and send me the output
please.
the functions should actually do the same thing as the oo api.
Previous Comments:
------------------------------------------------------------------------
[2002-02-13 12:29:30] [EMAIL PROTECTED]
Hello,
I want connect to COM server, that publish data from some application.
Script run forever, but application my be started or stoped.
If I try use following script, I cannot discover if invoking object
method is succesful or not. Here is script:
$tag = new COM("FLINK.TAGOBJ") or die("Unable to instanciate Flink");
while (1) {
$bool = $tag->bind("DATETIME");
if ($bool === false){
print "Bind failed\n";
};
$val = $tag->read; // This function return value from binded variable
if ($val === false){
print "Read failed\n";
};
print "Val: $val\n";
sleep(1);
};
$tag->Release();
$tag = null;
Messages "* failed" is not reported, if application not run.
The following script run correctly:
$tag = com_load("FLINK.TAGOBJ") or die("Unable to instanciate Flink");
while (1) {
$bool = com_invoke($tag, "bind", "DATETIME");
if ($bool === false){
print "Bind failed\n";
};
$val = com_invoke($tag, "read"); // This function return value from
binded variable
if ($val === false){
print "Read failed\n";
};
$val = com_propget($tag, "read"); // This function return value from
binded variable
if ($val === false){
print "Propget Read failed\n";
};
print "Val: $val\n";
sleep(1);
};
com_release($tag);
$tag = null;
Is this feature or bug.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15543&edit=1