|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-11-11 11:51 UTC] bugzilla33 at gmail dot com
Description: ------------ Calls to 'new COM' and methods from its object crash PHP! This bug is introduced in PHP 5.4 PHP 5.3.9RC1 works perfect. Tested on Windows 7 32 bit + Apache 2.2.21 VC9 from apache longuq + PHP 5.4.0RC1 VC9 Thread Safe. Expected result: ---------------- no crash Actual result: -------------- crash PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 17:00:01 2025 UTC |
Here you are: Expected result: ---------------- PHP 5.3.9RC1 prints: Microsoft Windows Actual result: -------------- PHP 5.4.0RC1 crash <?php $z=50;while($z--){ $o=new COM('WinMgmts:',null,CP_UTF8); foreach($o->ExecQuery('SELECT * FROM Win32_OperatingSystem') as $x){ $o=$x->Caption; } } print($o); ?>corrected version: <?php $z=50;while($z--){ $o=new COM('WinMgmts:',null,CP_UTF8); foreach($o->ExecQuery('SELECT * FROM Win32_OperatingSystem') as $x){ $s=$x->Caption; } } print($s); ?>