You are here: php5<-->com terribly wrong ? « PHP « IT news, forums, messages
php5<-->com terribly wrong ?

Posted by "Martin Staiger" on 10/02/05 14:15

Dear experts,

something must be terribliy wrong with either php5<->com or our
configuration/code.

We used to control MS-Index-Server via php4 without any problems:
----------------------------------------------------
$q = new com ("ixsso.Query");
$util = new com ("ixsso.util");
$q->query = $QueryText . ' AND #filename "(*"';
$q->SortBy = "rank[d]";
$q->catalog = "docs";
$q->Columns = "filename, Path, size, characterization, rank";
$q->MaxRecords = 300;
$util->AddScopeToQuery ($q, "/", "deep");
$q->LocaleID = $util->ISOToLocaleID("EN-US");

$rs = $q->CreateRecordSet("nonsequential");

// Loop over result
while (!$rs->EOF)
{
........

$rowcount++;
$rs->MoveNext();
}
----------------------------------------------------

Since we migrated to php5 we changed the iterator to run with FOREACH which
causes a fatal error:

foreach($rs as $ResultCounter)
{
...

}
--> Fatal error: Uncaught exception 'Exception' with message 'Object of type
variant did not create an Iterator'
in..
Same thing happens with:
foreach($rs as $ResultCounter => $row)
{
...
}
--> Fatal error: Uncaught exception 'Exception' with message 'Object of type
variant did not create an Iterator'
in..

Also, we tried to use the com-exception try..catch which didn't work either.

What's wrong here???

Environment :
win XP/2003, Apache 2.0.53, php 5.0.5

I'm thankful for any hint!
Marc

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация