ID: 35689 Updated by: [EMAIL PROTECTED] Reported By: jamie dot layne at gmail dot com -Status: Open +Status: Assigned Bug Type: COM related Operating System: Windows Server 2003 PHP Version: 5.1.1 -Assigned To: +Assigned To: Wez
Previous Comments: ------------------------------------------------------------------------ [2005-12-15 20:30:58] jamie dot layne at gmail dot com 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 this bug report at http://bugs.php.net/?id=35689&edit=1