From: karsten dot hohmeier at bbz-fulda dot de Operating system: Windows Server 2003 SP1 PHP version: 5CVS-2006-02-10 (snap) PHP Bug Type: COM related Bug description: PHP crashes when accessing an object that was just create by parent object
Description: ------------ I'm trying to automate MS ISA Server 2000 destination-set and filter-rule generation by using its COM Objects. The creation and modification processes perfectly works in VBS. When trying to implement those mechanisms with PHP the Script crashes whenever i try to modify newly created objects. The creation and modification is carried out and the rules are visible in ISA Managment afterwards, but the PHP Script does not cleanly exit. There are application errors (see below) logged in the system log when running from commandline and as apache module (apache crashes too). If i do not try to modify any new objects the script terminates as expected. I tried any available 5.x Version of PHP below php5.1-win32-200602101130.zip but no change in behavior. Reproduce code: --------------- $FilterRuleName = "TestRule"; $objFPC = new COM("FPC.Root") or die("Unable to create FPC Objekt"); $MyFPCRuleSets = $objFPC->Arrays->GetContainingArray->ArrayPolicy->SiteAndContentRules; $MyFPCRuleSets->Add($FilterRuleName); $MyFPCRuleSets->Save(); unset($objFPC, $MyFPCRuleSets); $objFPC = NULL; $MyFPCRuleSets = NULL; $objFPC = new COM("FPC.Root") or die("Unable to create FPC Objekt"); $MyFPCRule = $objFPC->Arrays->GetContainingArray->ArrayPolicy->SiteAndContentRules->Item($FilterRuleName); echo $MyFPCRule->Name."\r\n"; $MyFPCRule->Description = "TestDesc"; <--- Crash on modification $MyFPCRule->Save(); unset($objFPC, $MyFPCRule); $objFPC = NULL; $MyFPCRule = NULL; Expected result: ---------------- Clean exit of Script Actual result: -------------- PHP Crashes (commandline as well as Apache Module) and Logs 1 Event in the Applicationlog Application Failure php.exe 5.1.3.3 in php5ts.dll 5.1.3.3 at offset 00008fea or Application Failure php.exe 5.1.3.3 in php5ts.dll 5.1.3.3 at offset 000093a9 or Application Failure php.exe 5.1.3.3 in php5ts.dll 5.1.3.3 at offset 00009b9aa -- Edit bug report at http://bugs.php.net/?id=36360&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36360&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36360&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36360&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36360&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36360&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36360&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36360&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36360&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36360&r=support Expected behavior: http://bugs.php.net/fix.php?id=36360&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36360&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36360&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36360&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36360&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36360&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36360&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36360&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36360&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36360&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36360&r=mysqlcfg