#35689 [NEW]: Object of type com did not create an Iterator
From: jamie dot layne at gmail dot com
Operating system: Windows Server 2003
PHP version: 5.1.1
PHP Bug Type: COM related
Bug description: Object of type com did not create an Iterator
Description:
------------
The recommended way of iterating over COM as per Zend.com is to use the
foreach($com as $ob) method, as opposed to the old $com->Next() approach.
This hasn't been working for objects of type COM or VARIANT.
Specs:
Windows Server 2003
PHP 5.1.1
Reproduce code:
---------------
<?
-- Example --
$word = new COM("word.application");
foreach ($word as $obj) {
echo $obj. "<br>";
}
?>
Expected result:
----------------
List of properties for the desired COM object
Actual result:
--------------
Object of type com did not create an Iterator
Similar error:
Object of type variant did not create an Iterator
--
Edit bug report at http://bugs.php.net/?id=35689&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35689&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35689&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35689&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35689&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35689&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35689&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35689&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35689&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35689&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35689&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35689&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35689&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35689&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35689&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35689&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35689&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35689&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35689&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35689&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35689&r=mysqlcfg
Thread (3 messages)
- jamie dot layne at gmail dot com