|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-21 02:08 UTC] wez@php.net
[2004-12-21 11:26 UTC] borbarad at gmxpro dot net
[2004-12-21 15:33 UTC] iliaa@php.net
[2004-12-22 13:11 UTC] kir at post dot kg
[2004-12-22 14:55 UTC] borbarad at gmxpro dot net
[2004-12-23 02:42 UTC] edink@php.net
[2005-01-10 17:41 UTC] borbarad at gmxpro dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 18:00:01 2025 UTC |
Description: ------------ When calling new COM() in PHP 4.3.10 the call will raise an exception due to read of memory at a location too close to NULL (same memory page). This problem occurred only in the latest PHP release. It does not apply to 4.3.9! Actually because it broke some of our scripts we recognized this as a problem. Reproduce code: --------------- //--------------------------------------------------- function GetDomainMachines($DomainName) { // Get the domain object ... $objDomain = new COM("WinNT://".$DomainName); // List all objects and ... while($obj = $objDomain->Next()) // ... filter for computers if ($obj->Class == "Computer"){ $arr[] = $obj->Name; } return $arr; } /* Give a valid domain name as the parameter, then call the function and dump the array contents */ Expected result: ---------------- It will return all machine names of domain members in the hash. Instead of filtering for type "Computer" one may use "User" and give the local machine as the "DomainName" parameter. In this case it should even work on the local machine and will return all users of the local machine. Actual result: -------------- Exception (messagebox, not even as a PHP error). Find a screenshot here: http://www.erm.tu-cottbus.de/~schneol/php/Screenshot0001.png Note, that regardless which object you try to instantiate you'll always fail reading at 0x0000006c, not different locations in memory.