php-windows Digest 3 Oct 2005 09:22:14 -0000 Issue 2790
Topics (messages 26388 through 26389):
php5<->com terribly wrong ?
26388 by: Martin Staiger
Re: php_zip PHP 5.05 extension issue
26389 by: Mark Rees
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
> I installed php in c:\inetpub\php folder and gave access to IIS user.
> My web server is IIS5.
> I added HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath = ini path directory
>
> I uncommented extension=php_zip.dll in the php ini file and put
php_zip.dll
> in php folder.
> I added extension_dir = "c:\inetpub\php\" in the ini file.
>
> When I set php to work as CGI with php-cgi.exe my test script works fine.
> When I switched from CGI to SAPI, I got this error
>
> Fatal error: Call to undefined function zip_open() in
> c:\Inetpub\wwwroot\autoupdate\default.php on line 3
Run a script in your browser consisting of just phpinfo(). Check that the
php.ini file ISAPI is using is the same one as CGI
--- End Message ---