|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-16 00:05 UTC] wez@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 00:00:02 2025 UTC |
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